Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
WanWizard
a.k.a. WanWizard
Discussions
4
Comments
8242
Activity
how to load email->bcc from database?
Depends on what your as_array returns. You can pass an assoc array to bcc(), containing 'email' => 'name' entries.
Comment by
WanWizard
June 2015
permalink
What does 'true' mean in the call \Auth::acl(true)?
It can be used to retrieve an ACL driver instance. Passing true as the instance name will return an array with all loaded driver instances.
Comment by
WanWizard
June 2015
permalink
How do I deploy to webfaction?
So the 'webapps' folder is their webservers' document root? If so, follow the instructions in the docs for "installation inside the document root". The idea of having a "public" folder is to make sure all your co…
Comment by
WanWizard
June 2015
permalink
Help with image in html and sending via email
I assume your TinyMCE code is installed so that going to folders up and then down into assets finds the file. This is the problem with relative paths, they only work in one place, so avoid them. If Email sees a relative path, it assumes it's r…
Comment by
WanWizard
June 2015
permalink
ORM unexpected results when adding
For a really depressing read on the subject: http://www.jonathantneal.com/blog/understand-the-favicon/ ;-)
Comment by
WanWizard
June 2015
permalink
ORM unexpected results when adding
Check your webserver log to see what is exactly requested, or use network tools like those present in Chrome or Firefox (tools, web developer, network). Favicons are tricky business, there are several ways of defining one in the header, and then st…
Comment by
WanWizard
May 2015
permalink
Can I configure Asset::img to fail silently?
He can't if this was started as a discussion and not as a question. Always choose the correct type when starting a new thread.
Comment by
WanWizard
May 2015
permalink
ORM unexpected results when adding
If you have a controller being called twice, your first port of call is a missing asset. If you use the started .htaccess ruleset, it checks first if you request an existing file or directory, for example http://example.org/assets/img/someimage.jpg…
Comment by
WanWizard
May 2015
permalink
ORM unexpected results when adding
Lets keep the discussion in one place, see my reply on StackOverflow.
Comment by
WanWizard
May 2015
permalink
install google-api-php-client in Fuelphp
See https://developers.google.com/api-client-library/php/start/installation#using-composer Add it to the composer.json, run a "composer update", and use the classes as documented. (p.s. requires Fuel v1.6+)
Comment by
WanWizard
May 2015
permalink
Bugs and errors in production site.
What mail configuration are you using? When you're sending more than the occasional email, you should use the smtp driver, and not PHP's build in mail or the sendmail driver. And if it's really bulk, consider using an external email…
Comment by
WanWizard
May 2015
permalink
Bugs and errors in production site.
I don't know. I can't look into your code, on your server, don't know how you deploy and what, and I haven't seen any error messages or bug reports. What do you want me to reply? We never ever have a deployment issue.
Comment by
WanWizard
May 2015
permalink
Help with csv export
public? Why not create a temp file, it doesn't have to be publicly accessible at all. From a security point of view perhaps not a good idea either.
Comment by
WanWizard
May 2015
permalink
Help with csv export
Not the best way to download something, you're using a framework so that will do the output processing for you, which interferes with your handcoded statements. Use File::download() instead. It requires a temp file you have to create (it has n…
Comment by
WanWizard
May 2015
permalink
How can I generate existing model for admin?
I added fromdb:migration earlier this week, but it's still very basic. I created an issue to keep track of what is still missing (which is substantial).
Comment by
WanWizard
May 2015
permalink
How to I append search to pagination links?
You are passing a "pagination_url". That will disable any URL detection by the pagination class, it will use the url you have defined, as you defined it. So either remove that and let the class construct the URL itself, or pass a URL in…
Comment by
WanWizard
May 2015
permalink
How to I append search to pagination links?
Update your local framework installation to either 1.7.3 (released last week) or switch to 1.8/develop. The issue was fixed here: https://github.com/fuel/core/commit/b952d60cac99137f973633238addd540790cf45d
Comment by
WanWizard
May 2015
permalink
Fatal error: Cannot access protected property Orm\Query::$alias in /var/www/public_html/vb_app.dev/f
This is a different error, caused by a typo in my previous fix, sorry about that. Fixed now. I guess there aren't that many people still on PHP 5.3.x. From 5.4 up you didn't have the original error, it was a PHP bug (scope of a closure) t…
Comment by
WanWizard
May 2015
permalink
Fatal error: Cannot access protected property Orm\Query::$alias in /var/www/public_html/vb_app.dev/f
I think I found a solution. Could you replace your packages/orm/classes/query.php by https://raw.githubusercontent.com/fuel/orm/305414df845ee1a72dd18592e4606934a5d252c4/classes/query.php and let me know if it is fixed now?
Comment by
WanWizard
May 2015
permalink
Fatal error: Cannot access protected property Orm\Query::$alias in /var/www/public_html/vb_app.dev/f
You indeed need to switch to Ormauth, and you also need to add Orm to the config. And now I can reproduce it on 5.3.15, so it's something specific < 5.4, because newer versions works fine.
Comment by
WanWizard
May 2015
permalink
Fatal error: Cannot access protected property Orm\Query::$alias in /var/www/public_html/vb_app.dev/f
Which Auth are you using? In your first post you mentioned setting up your auth config, but in your last step-by-step you didn't mention it. By default Fuel uses Simpleauth, which doesn't use ORM at all. So perhaps that last list of step…
Comment by
WanWizard
May 2015
permalink
Fatal error: Cannot access protected property Orm\Query::$alias in /var/www/public_html/vb_app.dev/f
Ok, found an old VM with 5.3.15 installed. Same sequence runs fine there too. So I'm clueless. If you read http://php.net/manual/en/language.oop5.visibility.php, we're doing nothing strange there, on the contrary, the entire ORM hydratio…
Comment by
WanWizard
May 2015
permalink
Fatal error: Cannot access protected property Orm\Query::$alias in /var/www/public_html/vb_app.dev/f
Runs fine here, that exact sequence of commands. I have to see if I can find a PHP 5.3.x somewhere, my development machine runs 5.6.8.
Comment by
WanWizard
May 2015
permalink
Fatal error: Cannot access protected property Orm\Query::$alias in /var/www/public_html/vb_app.dev/f
As of Fuel 1.6 we have moved to packagist instead of using git submodules, which are a major pain. oil automatically runs a 'composer install' after the project is created, but that doesn't work if you don't have composer insta…
Comment by
WanWizard
May 2015
permalink
How can I generate existing model for admin?
For next time: most oil scripts come with a '-h' or '--help' parameter, that shows you the syntax. In the case of fromdb: Description: Run scaffolding or generate a model from existing database table(s). Database settings m…
Comment by
WanWizard
May 2015
permalink
More Comments
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
About
Username
WanWizard
Joined
January 2011
Visits
2,367
Last Active
May 4
Roles
Administrator