Re: Simple Poll

2013-01-24 Thread polutan
h i think i need to fix your models as below : Poll hasMany Choice Choice hasMany ChoiceResult or PollResult That;s just my idea. Then...you should save your polling result to ChoiceResult model or choice_result table. *choice_result* table : id choice_id other_result sample data : id |

Re: Creating objects from the parent object of a hasmany relationship in a controller

2013-01-10 Thread polutan
Just pass your POST request http://davidwalsh.name/curl-post 2013/1/11 Sam Marland sammarl...@gmail.com I am creating a web application that stores user's journeys and I'm build this application in CakePHP 2.2.5. I have a Journey model and that journey model has many coordinate objects

Re: authentication and authorization is not working

2012-12-15 Thread polutan
repeat and repeat again your effort.. try and error.. 2012/12/13 ashy ashcsi1...@gmail.com Hello All, I am following the tutorial below http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#identifying-users-and-logging-them-in The password is not getting hashed by

Re: Cake is not automatically single quoting SQL string when doing Model::updateAll()

2012-12-12 Thread polutan
This is better looking code http://pastie.org/5516905 2012/12/13 polutan linspir...@gmail.com I get SQL error when doing Model::updateAll() . The error appeared because my data string not quoted with single quote. It seems cake is not automatically single quoting my data

Cake is not automatically single quoting SQL string when doing Model::updateAll()

2012-12-12 Thread polutan
I get SQL error when doing Model::updateAll() . The error appeared because my data string not quoted with single quote. It seems cake is not automatically single quoting my data. This is the screenshoot. Please check this out : http://img546.imageshack.us/img546/2289/localhosttaskmonusersed.png

Re: Cake is not automatically single quoting SQL string when doing Model::updateAll()

2012-12-12 Thread polutan
2012 18:45:50 UTC+1 schrieb polutan polution at all: I get SQL error when doing Model::updateAll() . The error appeared because my data string not quoted with single quote. It seems cake is not automatically single quoting my data. This is the screenshoot. Please check this out : http://img546

Re: Interesting problem with pagination

2012-11-14 Thread polutan
your *image_portrait* not returned? is that you mean? 2012/11/14 char charlotte...@gmail.com Hi all, I've got a problem which I hope is interesting to everyone. Got a generic table, in which each item has an image and an attribute that says wether the orientation is portriat or landscape.

Re: [URGENT] Acl::check() is not working

2012-11-13 Thread polutan
This might help: http://bakery.cakephp.org/articles/thanos/2011/01/17/acl_checking_permissions_in_views On Mon, Nov 12, 2012 at 1:37 AM, polutan polution at all linspir...@gmail.com wrote: i have group's access rights setting page http://imageshack.us/f/600/accessrightslist.png/ . now i using Acl

[URGENT] Acl::check() is not working

2012-11-11 Thread polutan polution at all
i have group's access rights setting page http://imageshack.us/f/600/accessrightslist.png/ . now i using Acl::check() to check whether an access item is allowed or denied, if allowed the checkbox is checked. I create my checkbox form using an helper this is my helper code

Re: Dealing with mysql views in schema generation

2012-11-07 Thread polutan
is not schema just to generate tables? i think schema just focusing himself to create tables. schema is not a SQL SELECT command. 2012/11/6 Greg Skerman gsker...@gmail.com Hi, For one of my projects, I need to join up against some static data in another database. The data in this database

Acl::check() the $action parameter and the default vals , what does that mean?

2012-11-07 Thread polutan polution at all
Hello folks :) I don't understand what does $action param and its default values mean? Because i can directly write $this-Acl-check(warriors/Aragorn, ControllerNames/myMethodName) then it works, i don't need to supply $action param. Then if i do something like at the manual $this-Acl-check(

Acl's Methods $aro param variations

2012-11-07 Thread polutan
Halo folks :) I Need to know variations of Acl's methods $aro param format. Hard to understand AclNode::node() method. I want to cache Acl's methods, but i don't know the variations of $aro param. Thank You :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: Acl::check() the $action parameter and the default vals , what does that mean?

2012-11-07 Thread polutan
anybody? Please help me 2012/11/5 polutan polution at all linspir...@gmail.com Hello folks :) I don't understand what does $action param and its default values mean? Because i can directly write $this-Acl-check(warriors/Aragorn, ControllerNames/myMethodName) then it works, i don't need

the questions rarely answered. why?

2008-07-11 Thread polutan
Hello :) i'am so sorry before if this post sounds insulting :) i just want to know, why most of questions here is rarely answered? is all happier using #cakephp instead of cake's google group? why cake's mailing list was not as crowded as in #cakephp irc channel? Thank you :)

Re: Found a sweet routing work around! I'm so close!

2008-04-03 Thread polutan
Woww... is it like we able to create or add much of subdomain? I mean like social networking site that give their users a special domain like username1.domain.com, username2.domain.com, and so on.. like that? is that true? @John R can u explain me how is ur table structure? i mean as you said

Re: Using Multiple Models in a Controller?

2008-01-06 Thread polutan
add this in your controller var $uses = array('Model2','Model3'); or if not working try to var $uses = array('YourCurrentModelName','Model1','Model2','Model_etc'); for your case. did you want to access Customer model in employees_controller ? just add : var $uses = array('Customer'); or var

Re: can not pass null when creating aco or aro

2008-01-04 Thread polutan
:( hello can someone help me ?? On Jan 3, 3:35 pm, polutan [EMAIL PROTECTED] wrote: hello can anyone help me? i really need to implement ACL soon to my project.. thank you On Jan 3, 2:55 pm, Linspirell [EMAIL PROTECTED] wrote: Hello friends :) why i can't pass null value when i want

error when creating aco | aro with cake console cake 1.2

2008-01-04 Thread polutan
I got this error when i run this command : cake acl create aco / ROOT Fatal error: Undefined class name 'string' in D:\tohtdocs\MyBand\cake \libs\model \datasources\dbo_source.php on line 1456 what must i have to do ? help me please thank you

Re: can not pass null when creating aco or aro

2008-01-03 Thread polutan
hello can anyone help me? i really need to implement ACL soon to my project.. thank you On Jan 3, 2:55 pm, Linspirell [EMAIL PROTECTED] wrote: Hello friends :) why i can't pass null value when i want to create an aro or aco ? i'am using database structure from the tutorial. no modification i