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
Getting an object for a row using find()
No problem, I think it boils down to personal preference. Some like the array notation, some method chaining. Fuel v2 will most likely not support find() anymore (at least not in the current complex way), so you might want to use method chaining no…
Comment by
WanWizard
December 2013
permalink
Issue Regarding system's timezone settings. Time Zone Error
The timezone should be set to match the servers timezone, otherwise you get all sorts of time issues. Once local time works you can shift the time using the gmtoffset in your config file. But you have a bigger issue. One of the errors on your page…
Comment by
WanWizard
December 2013
permalink
Ordering of multiple relations
The array notition of find() will quickly become very complex for queries like this, I personally never use it, I prefer method chaining, keeps things easier to read. What exactly is the problem. You said you tried, and I assume you post it because…
Comment by
WanWizard
December 2013
permalink
I am working with Join This is the error which i recive
No problem. Just trying to say that you learn more by trying to understand the error message and why you get it then by asking someone else. If you can't figure it out, we're always here to help.
Comment by
WanWizard
December 2013
permalink
iPhone Full Screen not recognized by Agent
Same answer I'm afraid. I ran some tests, it detects firefox up to version 24. If I change the version to 25 or up, it not longer detects the browser. So the browscap files are in need of updating.
Comment by
WanWizard
December 2013
permalink
Getting an object for a row using find()
If you only want one result back, use 'first' instead of 'all', get the the first object found. And I don't understand your remark about get_one(). Offcourse it does, but get() and get_one() are chained query methods, and h…
Comment by
WanWizard
December 2013
permalink
hw show pagenation link ? how to use render function
The output of Pagination::render() is HTML. So either do the rendering in your controller, and pass the result to the View using set_safe() to disable output encoding, or pass the Pagination object to the View, and echo (or let in render) in there.
Comment by
WanWizard
December 2013
permalink
Getting URI for a Router
get() only works with named routes, so you need to define it as return array( 'category/(:name)' => array('categories/view/$1', 'name' => 'category'), ); otherwise it can't be found.
Comment by
WanWizard
December 2013
permalink
I am working with Join This is the error which i recive
It says OutOfBoundsException [ Error ]: Property "comment" not found for Model_Oil_Demo. And where is this property? Not in your properties list, and it's not a relation either (that is called 'comments'). Please try to d…
Comment by
WanWizard
December 2013
permalink
I am working with Join This is the error which i recive
Fuel\Core\Database_Exception [ Error ]: SQLSTATE[42S22]: Column not found: 1054 Unknown column 't1.created_at' in 'field list' with query: "SELECT `t0`.`id` AS `t0_c0`, `t0`.`title` AS `t0_c1`, `t0`.`mnumber` AS `t0_c2`, …
Comment by
WanWizard
December 2013
permalink
Location for adding Auth valiation with TWIG template
The problem with this is: where to stop. Everyone finds something useful. We can't just put the entire framework in the extension. Personally I already think there is too much in there. There should be no processing in a template, it should be…
Comment by
WanWizard
December 2013
permalink
Location for adding Auth valiation with TWIG template
I've never used Twig, but I think the idea is to keep code out of your templates. Twig allows you to add additional functionality using extensions. You can have a look at classes/twig/fuel/extension.php in the Parser package, to see what is al…
Comment by
WanWizard
December 2013
permalink
Error Class 'Model_User' not found
It says ErrorException [ Parsing Error ]: syntax error, unexpected '/'
Comment by
WanWizard
December 2013
permalink
Model not found on production server, works fine in dev environment.
Case problem? Fuel generates class names ucfirst(), so "Model_Iosdevice" instead of "Model_IosDevice". Also, are all file- and pathnames in lowercase?
Comment by
WanWizard
December 2013
permalink
Database_Exception [1129]; unblock with 'mysqladmin flush-hosts'
mysqladmin is a tool from the mysql server toolset. You need to run it on the server that runs MySQL.
Comment by
WanWizard
December 2013
permalink
ChangingTable Structure in FuelPHP with Oil CLI
You can not call create_table() a second time, it already exists. You have to create a migration that uses DBUtil::add_fields() and DBUtil::drop_fields() to modify the structure of the existing table. This has as an added benefit that you don'…
Comment by
WanWizard
December 2013
permalink
Error Class 'Model_User' not found
The models included in the Auth package are for use with Ormauth. If you don't use that, or you want Model_Crud models, you have to create them yourself. If you already have the tables, you can use the fromdb oil task to generate a model from …
Comment by
WanWizard
December 2013
permalink
not able to login with Auth conecpt
The login hash will be generated when you have a succesful login, it is not something you have to do yourself. If you use Auth::create_user() to create a new user record, you can use Auth::login() to login. There is an example of an Auth controlle…
Comment by
WanWizard
December 2013
permalink
Database_Exception [1129]; unblock with 'mysqladmin flush-hosts'
It is a security measure server side (the MySQL server), which is configured to block unreliable incoming connections. See http://dev.mysql.com/doc/refman/5.0/en/blocked-host.html So you need to figure out where all these connection errors come fr…
Comment by
WanWizard
December 2013
permalink
Live Demo of the FuelPHP Version 2.0 Demo Application
There isn't much really ready at the moment, much of it is under development, it isn't even alpha code yet. But "hello world" should start. Merry Christmas!
Comment by
WanWizard
December 2013
permalink
Live Demo of the FuelPHP Version 2.0 Demo Application
git clone https://github.com/fuelphp/fuelphp cd fuelphp composer update create a virtual host, point the docroot to the public folder start your browser load the url you've defined for your virtual host
Comment by
WanWizard
December 2013
permalink
How do Ajax work in FuelPHP Please provide some example
I don't do frontend so I can't help you with the javascript side of things.
Comment by
WanWizard
December 2013
permalink
How do Ajax work in FuelPHP Please provide some example
You have interactive controllers (either plain, or Controller_Template based) or you have API controllers. Best practices say you shouldn't mix the two as you need to treat them differently. For example, API's should be stateless (so you …
Comment by
WanWizard
December 2013
permalink
->select() and cache ? : I felt into a trap.
For every DB access you need to think whether you should use ORM or DB calls. The current ORM has quite a few limitations or "quirks", the entire hydration/caching bit being one of them. There is a method from_cache(), which allows you t…
Comment by
WanWizard
December 2013
permalink
How do Ajax work in FuelPHP Please provide some example
Then you'll need to use the Controller_Rest base controller. See http://docs.fuelphp.com/general/controllers/rest.html
Comment by
WanWizard
December 2013
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,371
Last Active
May 14
Roles
Administrator