Re: Need help to integrate smary 3.0 with cake PHP 2.0

2014-06-04 Thread Борислав Събев Borislav Sabev
I know this is somewhat of a troll answer, but: This should be possible with some tweaks to core variables, but why in the world would you want to do that? If your answer is that you know Smarty and not CakeViews I'd suggest you take 4 hours of reading and you will be pretty comfortable with

Re: need help with check/uncheck all checkbox [cakephp]

2013-11-18 Thread Dave M.
I don't think the class option works for multiple checkboxes. What you can do is specify a div and work off of that (you can also reduce your js code): echo $this-Form-input(Country, array(options = $viewData[countryList], multiple = checkbox, onclick = resetSelectAll(); , div = countries ,

Re: Need a help for cakephp controller,

2013-03-11 Thread lowpass
That's quite a vague request. Have you read the documentation? On Mon, Mar 11, 2013 at 12:55 PM, Ganapathi Raman ganapath...@gmail.com wrote: hi all i am a new to the cake php...can anyone help me for how to learn controller method's.please please, -- Like Us

Re: Need help with file uploads

2013-01-23 Thread lowpass
On Wed, Jan 23, 2013 at 11:10 AM, Shahruk Khan shahruksem...@gmail.com wrote: I followed this tutorial: http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper%3a%3afile My View / Form ?php echo $this-Form-create(User, array(enctype = multipart/form-data)); ? echo

Re: Need help with file uploads

2013-01-23 Thread Shahruk Khan
Nope. debug($this-data) still has no other info. On Wednesday, January 23, 2013 1:53:27 PM UTC-5, cricket wrote: On Wed, Jan 23, 2013 at 11:10 AM, Shahruk Khan shahru...@gmail.comjavascript: wrote: I followed this tutorial:

Re: Need help with file uploads

2013-01-23 Thread John Hardy
Check your PHP configuration and ensure that your file upload settings are appropriate for the use-case. Also, print out the _FILES array to also check to see if PHP is accepting your upload. On Jan 23, 2013, at 3:09 PM, Shahruk Khan shahruksem...@gmail.com wrote: Nope. debug($this-data)

Re: Need help with file uploads

2013-01-23 Thread Shahruk Khan
The files were not being accepted. Solved the problem thanks! Just in case anyone has the same problem. You cannot serialize file upload forms via jQuery and pass them to the controller. On Wednesday, January 23, 2013 6:15:59 PM UTC-5, ibejohn818 wrote: Check your PHP configuration and

Re: Need Help about Server Error 500 Blank Page

2013-01-22 Thread mraheel83
I checked all files PHP, Apache and CakePHP Logs. Only access log is updating with the address and 500 Error. -- View this message in context: http://cakephp.1045679.n5.nabble.com/Need-Help-about-Server-Error-500-Blank-Page-tp5713337p5713341.html Sent from the CakePHP mailing list archive at

Re: Need Help about Server Error 500 Blank Page

2013-01-22 Thread lowpass
On Mon, Jan 21, 2013 at 8:32 AM, mraheel83 mrahee...@gmail.com wrote: I checked all files PHP, Apache and CakePHP Logs. Only access log is updating with the address and 500 Error. That's strange. Try adding this to your bootstrap.php error_reporting(-1); This will tell PHP to output all

Re: Need some HABTM help retrieving related posts

2012-12-17 Thread lowpass
Post model: public $hasMany = array( 'RelatedPost' = array( 'className' = 'Post', 'foreignKey' = false, 'limit' = 5, 'order' = array('RelatedPost.created' = 'DESC'), 'finderQuery' = 'SELECT RelatedPost.id,

Re: Need help with a find on related HABTM relationship

2012-09-28 Thread lowpass
You don't really need to add a constraint if your code if you specify the User.id as a condition and run your query on the User model. In Project model: public function fetchAll($user_id = null) { if (!empty($user_id)) { return $this-User-find(

Re: Need Help

2012-08-10 Thread mohit kumar
Any idea guys? *With Best Regards, Mohit Kumar http://kumarmohit.com* *+91-9582894570* On Thu, Aug 9, 2012 at 11:03 AM, mohit kumar mohitk...@gmail.com wrote: Hi Folks, Can anyone help me regarding this.

Re: Need Help

2012-08-10 Thread Tilen Majerle
i'm not understanding you well, describe more about your problem.. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/10 mohit kumar mohitk...@gmail.com Any idea guys? *With Best Regards, Mohit Kumar http://kumarmohit.com* *+91-9582894570* On Thu, Aug 9, 2012 at 11:03 AM, mohit

Re: Need Help

2012-08-10 Thread mohit kumar
How can i display the data in this format. [] are checkboxes 1. 2. Users Shift1 shift2 shift3 shift4 3. user1[] [] [] [] 4. user2[] [] [] [] 5. user3[] [] [] [] 6. user4[] [] [] [] 7. user5[] []

Re: Need Help

2012-08-10 Thread Mike Griffin
On Fri, Aug 10, 2012 at 10:05 AM, mohit kumar mohitk...@gmail.com wrote: How can i display the data in this format. [] are checkboxes Users Shift1 shift2 shift3 shift4 user1[] [] [] [] user2[] [] [] [] user3[] [] [] [] user4[]

Re: Need Help

2012-08-10 Thread mohit kumar
thanks Mike.. Let me try that . But the problem is my controller that i generated by the bake is like user - shift - save so with 1 form 1 can save only one user, will it be possible for me to save multiple mappings with one go *With Best Regards, Mohit Kumar http://kumarmohit.com*

Re: Need Help

2012-08-10 Thread Salines
http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-saveall-array-data-null-array-options-array Dana petak, 10. kolovoza 2012. 11:24:07 UTC+2, korisnik mohit napisao je: thanks Mike.. Let me try that . But the problem is my controller that i generated by the bake is like user

Re: Need Help

2012-08-10 Thread Mike Griffin
On Fri, Aug 10, 2012 at 10:24 AM, mohit kumar mohitk...@gmail.com wrote: thanks Mike.. Let me try that . But the problem is my controller that i generated by the bake is like user - shift - save so with 1 form 1 can save only one user, will it be possible for me to save multiple mappings

Re: Need help with reverse routing

2012-08-10 Thread lowpass
Here's a generic element I use for pagination: http://pastebin.com/JvKbyWUi Perhaps you can modify that to your own needs. With Cake 2.x I've had to make some changes to what I had been using. I suppose that I must be doing something wrong that it requires the AppController snippet. I think

Re: Need help with reverse routing

2012-08-10 Thread Mark Wratten
cricket - thanks for the reply, I will try it and see if it works. Thanks Mark On Friday, August 10, 2012 4:18:32 PM UTC-4, cricket wrote: Here's a generic element I use for pagination: http://pastebin.com/JvKbyWUi Perhaps you can modify that to your own needs. With Cake 2.x I've had

Re: NEED HELP

2012-07-17 Thread Lboogie
Thank you all very much...I spoke with Larry form Cake DC who helped me get it running. He did explain to me that i needed to provide more info concerning the problem. Thanks again to you all. On Monday, July 16, 2012 9:40:06 AM UTC-4, Lboogie wrote: Hello, i am trying to install a project

Re: NEED HELP

2012-07-16 Thread euromark
how i hate those non-sense for-crying-out-loud thread titles^^ Am Montag, 16. Juli 2012 15:40:06 UTC+2 schrieb Lboogie: Hello, i am trying to install a project manager created with cake php but can't seem to trigger the install option when there is no install folder or files to do so...can

Re: NEED HELP

2012-07-16 Thread Lboogie
Are you able to help or not...isn't this what is group for? Excuse me if i'm wrong On Monday, July 16, 2012 10:20:12 AM UTC-4, euromark wrote: how i hate those non-sense for-crying-out-loud thread titles^^ Am Montag, 16. Juli 2012 15:40:06 UTC+2 schrieb Lboogie: Hello, i am trying to

Re: NEED HELP

2012-07-16 Thread Justin Edwards
http://book.cakephp.org/2.0/en/installation.html On Mon, Jul 16, 2012 at 11:15 AM, Lboogie lindamichellewat...@gmail.comwrote: Are you able to help or not...isn't this what is group for? Excuse me if i'm wrong On Monday, July 16, 2012 10:20:12 AM UTC-4, euromark wrote: how i hate those

Re: NEED HELP

2012-07-16 Thread Tilen Majerle
this is group for help, but you have to corrent describe your problem, give us your details (cake version, php version, server type, problem) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/16 Lboogie lindamichellewat...@gmail.com Are you able to help or not...isn't this what is group

Re: NEED HELP

2012-07-16 Thread Daniel Baird
On Mon, Jul 16, 2012 at 11:40 PM, Lboogie lindamichellewat...@gmail.comwrote: Hello, i am trying to install a project manager created with cake php but can't seem to trigger the install option when there is no install folder or files to do so...can anyone help me? Perhaps you just unzip it

Re: need a sample database

2012-07-01 Thread majna
this one is simple and you have to generate it using cake console (http://book.cakephp.org/2.0/en/console-and-shells.html) https://github.com/majna/schema On Saturday, June 30, 2012 5:02:30 PM UTC+2, Mahmoud Adel Farid wrote: i want a sample database like sakila or northwind with cakephp

Re: Need help populating a select box

2012-05-23 Thread Mike Griffin
On Tue, May 22, 2012 at 3:25 PM, dpinion dpin...@gmail.com wrote: Ok, I am somewhat new to cake, have spent the past two days on this and I am just not getting it. Hope someone can shed some light on it for me. I have two tables: icons_controller.php: ?php class IconsController extends

Re: Need help in Ajax

2012-05-01 Thread Tilen Majerle
which cake version ?? $ajax is helper, if you use Cake 2, than use $this-Ajax instead -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/5/1 Ankit Patel an...@eternalsoftsolutions.com p id=post3 /p p ?php echo $ajax-link( 'Response will be add at the top of selected element',

Re: Need help in Ajax

2012-05-01 Thread Ankit Patel
I am using cakephp 2.1.1 and now it shows like this Error The requested address was not found on this server. When I am using ajax -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Re: Need help in Ajax

2012-05-01 Thread Ankit Patel
Any ajax is not working actually so please help me with I want to use this example http://www.cakephp.4uk.pl/ajax/link I have included helper in Post controller and also in the app controller should I work -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Need Help

2012-03-01 Thread jeremyharris
Your first resource should be the book[1]. You can also look at screencasts[2] and sign up for classes that will teach you the basics and get you going[3]. 1: http://book.cakephp.org 2: http://tv.cakephp.org/ 3: http://training.cakephp.org/ On Thursday, March 1, 2012 5:44:07 AM UTC-8, mohit

Re: Need Help: A variable is losing value

2012-02-11 Thread Stephen Speakman
It's possible your $_SESSION['nId'] is actually overwriting the parameter being passed to the controller with 0? Assuming you're accessing the method like such: /networks/add_network/nID If you want to avoid creating a new record try: $this-Network-id = $nId; $this-Network-save($this-data);

Re: Need Help: A variable is losing value

2012-02-11 Thread chris varick
Stephen, STILL NOT WORKING... :( Thanks for the reply and suggestion. However the method you suggested gives me different results. This is what I ended up using: [code] $mySaveId = $this-Network-id = $nId; $networkId = $this-Network-save($this-data); [/code] Nothing is saved (editing record)

Re: Need Help: A variable is losing value

2012-02-11 Thread chris varick
Ok so I figured out what the issue was. When posting changes the form was not going to /network/add_network/ $nId it was only going to /network/add_network/ so this is why it would lose the $nId parameter. A couple of factors for this issue (main one below): 1) when I set the variable from

Re: Need Financial/Accounting Plugin for CakePHP 2.x

2012-01-20 Thread AD7six
On Jan 20, 2:11 am, Tanvir Gaus tanvir.g...@gmail.com wrote: Can anyone help me out with this one? Premium-pay help, or your average point-me-at-google help? AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Need cakePHP project

2012-01-16 Thread Hung
Hello Thanks ! Pls check your email i sent my portfolio link to you ! On Jan 15, 7:26 pm, gimmebucks sapew...@gmail.com wrote: Can i see your sample works(portfolio). On Jan 14, 1:03 pm, Hung quochung@gmail.com wrote: Hi everyone ! I am Hung in Viet Nam,  I have strong

Re: Need cakePHP project

2012-01-16 Thread Elisio Leonardo
Why not publish the link here for everyone to see, instead of send only by email? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To

Re: Need cakePHP project

2012-01-15 Thread gimmebucks
Can i see your sample works(portfolio). On Jan 14, 1:03 pm, Hung quochung@gmail.com wrote: Hi everyone ! I am Hung in Viet Nam,  I have strong experience with cakePHP and now i am looking for some project for my team to work on, if you guys have project pls contact me. Thanks -- Our

Re: Need help with model design

2011-12-19 Thread Geoff Douglas
http://book.cakephp.org/view/1323/Containable#Containing-deeper-associations-1325 Have you followed the steps in the above documentation? In model add the behavior, using the actsAs property. Then before you do your find, list the Relationships you want to contain...

Re: Need help with model design

2011-12-18 Thread Ersin Demirtas
Thanks guys but i couldn't manage to do can some one give me a hand. On Wed, Dec 14, 2011 at 7:07 PM, Geoff Douglas drdouglas...@gmail.com wrote: Like Andras said.. Containable is what you need, it is simple and awesome! -- Our newest site for the community: CakePHP Video Tutorials

Re: Need help with model design

2011-12-18 Thread Ersin Demirtas
Thank you very much, I got it! On Wed, Dec 14, 2011 at 4:45 AM, Andras Kende and...@kende.com wrote: Ersin, You could do 2 queries: $event = $this-Event-find('first', array('conditions' = array('Event.id' = $id))); $comments = $this-Event-Comment-find('all', array('conditions' =

Re: Need help with model design

2011-12-14 Thread Geoff Douglas
Like Andras said.. Containable is what you need, it is simple and awesome! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To

Re: Need help with model design

2011-12-13 Thread Andras Kende
Ersin, You could do 2 queries: $event = $this-Event-find('first', array('conditions' = array('Event.id' = $id))); $comments = $this-Event-Comment-find('all', array('conditions' = array('Comment.event_id' = $id))); Also take a look :

Re: Need a little help with HABTM joins

2011-11-10 Thread WebbedIT
nothing happens. users cannot de-associate Articles and Pieces So within your article/edit action what find calls are you making to fetch the article and all pieces (related or not)? Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Re: Need a little help with HABTM joins

2011-11-09 Thread WebbedIT
So by default you are associating all Articles to Pieces? I really suspect you're going about things in the wrong way here. Paul. On Nov 8, 10:04 am, Ernesto e.fanz...@gmail.com wrote: Thanks for the effort, i solved this way: - in both articles/add and pieces/add users can enter just code

Re: Need a little help with HABTM joins

2011-11-09 Thread WebbedIT
What happens if when the edit form first shows you unassociate all pieces, what happens the next time you load the edit form? I suspect the way you've done it you will get no pieces again. As mentioned earlier you should be using: $this-Article-Piece-find('all'); or $this-Article-Piece-

Re: Need a little help with HABTM joins

2011-11-09 Thread Ernesto
nothing happens. users cannot de-associate Articles and Pieces -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this

Re: Need a little help with HABTM joins

2011-11-08 Thread WebbedIT
How can i load an article, with ALL the pieces, even if they haven't a  relationship, using Cake's find function? You can't do this with one find query, this is not a limitation of CakePHP you simply can't do one database call that will find one article and all pieces related or not. This

Re: Need a little help with HABTM joins

2011-11-08 Thread Ernesto
Thanks for the effort, i solved this way: - in both articles/add and pieces/add users can enter just code and description, no related model data - after a successfull add() both Article and Piece models add every possible combination between them and the other model. The app then redirects

Re: Need a little help with HABTM joins

2011-11-07 Thread Giorgio Tedesco
I'd use a condition... or use $this-Article-ArticlePiece-findById(1); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from

Re: Need a little help with HABTM joins

2011-11-07 Thread Ernesto
this will load only related models :\ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to

Re: Need a little help with HABTM joins

2011-11-07 Thread Giorgio Tedesco
Are u italian? Anyway, if I understood: Recipe HABTM Tag | *recipes_tags.*id, *recipes_tags.*recipe_id, * recipes_tags.*tag_id in ur case: *In the Model of Article* Article HABTM Piece | *article_piece*.id, *article_piece*.article_id, * article_piece*.piece_id, (*article_piece.**) About

Re: Need a little help with HABTM joins

2011-11-07 Thread WebbedIT
$this-Article-find('first', array( 'conditions'=array('Article.id'=$id), 'contain'=array('ArticlePiece'='Piece'), )); HTH, Paul. On Nov 7, 12:41 pm, Ernesto e.fanz...@gmail.com wrote: this will load only related models :\ -- Our newest site for the community: CakePHP Video Tutorials

Re: Need a little help with HABTM joins

2011-11-07 Thread Ernesto
Hi. thx for the answer. This will not solve my issue. i want to load all the Pieces, even if they're not related to the Article Model -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Re: Need a little help with HABTM joins

2011-11-07 Thread Ernesto
ENG: Thanks for the effort but this isn't my problem ITA: Grazie del tentativo ma non é quello il mio problema :) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their

Re: Need a little help with HABTM joins

2011-11-07 Thread Giorgio Tedesco
They should've been linked by a HABTM but i need to save some additional fields in the join table so i made 2x hasMany. ITA: Article e Piece dovrebbero essere linkati via HABTM, ma vuoi salvare altri campi addizionali nella Tabella ArticlePiece. ITA: ma la tabella ArticlePiece può avere

Re: Need Data from DATABASE_CONFIG in Template

2011-09-14 Thread Miles J
The old school way of course. $db = new DATABASE_CONFIG(); $db-ldap['domain']; Don't worry, it won't actually cause any problems. On Sep 14, 3:43 am, gloop gl...@web.de wrote: Hello, i program a LDAP login. We have several domains and its pretty when i have only one location for the ldap

Re: need help in updateAll

2011-09-08 Thread Elisio Leonardo
You don't need to use updateAll. save will do all the job to create or update a record in db. You also need to put the line: $this-$table-create(); before save a new record to db $this-loadModel($table); $row =

Re: Need helps from CakePHP baker for my iPhone Game

2011-05-10 Thread Tilen Majerle
Hi Weilies Chok 1: you have XML library ( http://book.cakephp.org/view/1485/Xml ) and helper ( http://book.cakephp.org/view/1473/XML ) 2: your post data are always available in controller in $this-data variable 3: you will have to check bakery.cakephp.org :) -- Lep pozdrav, Tilen Majerle

Re: Need helps from CakePHP baker for my iPhone Game

2011-05-10 Thread Weilies Chok
thanks! 1: you have XML library ( http://book.cakephp.org/view/1485/Xml ) and helper ( http://book.cakephp.org/view/1473/XML ) 2: your post data are always available in controller in $this-data variable 3: you will have to check bakery.cakephp.org :) i got item number 2 worked! -- Our newest

Re: Need helps from CakePHP baker for my iPhone Game

2011-05-10 Thread Weilies Chok
Item 1 Controller function toxml() { echo $this-Xml-elem('count', null, array('cdata'=true,'value'='content')); // generates: count![CDATA[content]]/count } View ?php echo $this-Xml-header(); // generates: ?xml version=1.0 encoding=UTF-8 ? ? Error *Notice* (8): Undefined property:

Re: Need helps from CakePHP baker for my iPhone Game

2011-05-10 Thread Sam Sherlock
Xml is a helper used in view not in the controller (your code would output malformed xml); if you build the xml in controller it can only be put as xml in view build vars and set them to the controller; the requesthandler comp may help you also (and setting parse extensions for xml may also be

Re: Need possibility to paginate an custom array

2011-04-26 Thread euromark
ähm, double post? http://groups.google.com/group/cake-php/browse_thread/thread/745f772a6b0e19c6/7a1b094a9a380e75?lnk=gstq=paginate+array#7a1b094a9a380e75 On 26 Apr., 18:15, heohni heidi.anselstet...@consultingteam.de wrote: Hi, is there any solution available? Or anybody who can create such

Re: Need a 'video capturing through webcam' tool or code

2011-03-25 Thread Stephen
Flash may be your answer: http://board.flashkit.com/board/showthread.php?t=737944 On 25 March 2011 10:21, Rishab Jain jairis...@gmail.com wrote: Hi All, I need a video capturing through webcam plugin for cakephp. If not cake, then in simple php will also do. Does anybody know of such a

Re: Need a 'video capturing through webcam' tool or code

2011-03-25 Thread Tran Cao Thai
you can do that with jquery as well On Fri, Mar 25, 2011 at 7:00 PM, Stephen step...@ninjacodermonkey.co.ukwrote: Flash may be your answer: http://board.flashkit.com/board/showthread.php?t=737944 On 25 March 2011 10:21, Rishab Jain jairis...@gmail.com wrote: Hi All, I need a video

Re: Need a 'video capturing through webcam' tool or code

2011-03-25 Thread Stephen
On 25 March 2011 14:03, Tran Cao Thai jasonvoorhees...@gmail.com wrote: you can do that with jquery as well Impressive ! -- Kind Regards Stephen http://www.ninjacodermonkey.co.uk -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Re: Need help with paginate conditions

2011-03-09 Thread netusco
Hi, I see something... I use $this-paginate = $options; then this: $options['fields'] = array('Member.id'); looks fine to me this: $options['or'] = ... looks out of it's array conditions I would use $options['conditions']['or'] = ... maybe like this the fields would be recognized... then

Re: Need help with paginate conditions

2011-03-08 Thread Tilen Majerle
$this-paginate['Member']['conditions'], here are conditions list to search... -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/3/8 heohni heidi.anselstet...@consultingteam.de Hi, $options['Member.agent_id'] = $this-Session-read('AgentId'); $options['or'] = array(

Re: Need help with find paginate syntax

2011-03-05 Thread jeet bajaj
I think you have to use pagination on Payment model, inside the member controller If it is, then i will suggest the following code, if it can help. class MembersController extends AppController { var $uses = array('Payment’); function xyz(){ $this-paginate = array(

Re: need help

2011-01-31 Thread Amit Badkas
Hi, By setting 'empty' to false won't display the empty option but you need to set an extra option having label as 'select state', right? For this, set 'empty' = 'select state' instead of false in the 4th argument of select(). Hope that helps. Amit Badkas PHP Applications for E-Biz:

Re: need help

2011-01-31 Thread cricket
On Mon, Jan 31, 2011 at 7:37 AM, Amit Badkas amit.sanis...@gmail.com wrote: Hi, By setting 'empty' to false won't display the empty option but you need to set an extra option having label as 'select state', right? For this, set 'empty' = 'select state' instead of false in the 4th argument of

Re: need help

2011-01-30 Thread andy_the ultimate baker
thanks On Jan 29, 7:54 pm, cricket zijn.digi...@gmail.com wrote: On Sat, Jan 29, 2011 at 3:45 AM, andy_the ultimate baker anandghaywankar...@gmail.com wrote: hi, bakers i m working on one drop down list, i m getting all the values but the first option is coming blank. i want set this

Re: need help

2011-01-29 Thread cricket
On Sat, Jan 29, 2011 at 3:45 AM, andy_the ultimate baker anandghaywankar...@gmail.com wrote: hi, bakers i m working on one drop down list, i m getting all the values but the first option is coming blank. i want set this as select state with some value, like we used to in core php.  my view

Re: Need advice for custom ACL

2011-01-28 Thread AD7six
On Jan 26, 5:05 pm, Ernesto e.fanz...@gmail.com wrote: HiJohn thx for your response acting that way will bloat my app i have hundreds of possible combinations :\ why not just do something simple based on configuration so e.g. // app controller beforeFilter Configure::write('authtype',

Re: Need advice for custom ACL

2011-01-27 Thread Zaky Katalan-Ezra
In that case my honest advice to you is to revise your design. If it's not simple it's should simply not (In Hebrew it sounds better) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Re: Need advice for custom ACL

2011-01-27 Thread Ernesto
the only alternative path i can see is to make hundreds of controllers, each with his own specific model. this will lead to hundreds of controllers. Right now i'm acting this way: - i use the standard Cake ACL to prevent unwanted page views. - i added an Authorization model, with HABTM

Re: need help in javascript dropdown,

2011-01-27 Thread sanjib dhar
use $this-Form-input('citilist',array('options'=$state_code_list)); in cakephp.Save all cities in database and set variale as state_code_list=$this-Cities-find('list',array('fields'=array('Cities.cityID','Cities.city'))); On Thu, Jan 27, 2011 at 11:23 AM, andy_the ultimate baker

Re: Need advice for custom ACL

2011-01-27 Thread ShadowCross
Ernesto: Some things to try: For your first example: ignore some validation rules if the user has authorization X. - validate the data from the controller, using the $options parameter to specify which subset of the validation rules to apply. There is a (albeit simplistic) example in the

Re: Need advice for custom ACL

2011-01-27 Thread Ernesto
Hi ShadowCross. thx for your suggestions. i'll surely try them On 27 Gen, 20:31, ShadowCross adri...@jps.net wrote: Ernesto: Some things to try: For your first example: ignore some validation rules if the user has authorization X. - validate the data from the controller, using the

Re: Need advice for custom ACL

2011-01-26 Thread Jon Bennett
hi, in my app i need to (some examples): - ignore some validation rules if the user has authorization X - hide or modify some form fields if user hasn't authorization Y - do the usual ACL things (if you're a Customer you can't modify users and so on) not all of those authorizations are

Re: Need advice for custom ACL

2011-01-26 Thread Ernesto
HiJohn thx for your response acting that way will bloat my app i have hundreds of possible combinations :\ On 26 Gen, 15:05, Jon Bennett jmbenn...@gmail.com wrote: hi, in my app i need to (some examples): - ignore some validation rules if the user has authorization X - hide or modify

Re: Need advice for custom ACL

2011-01-26 Thread Jon Bennett
HiJohn thx for your response acting that way will bloat my app i have hundreds of possible combinations :\ Not sure what else to suggest, interested to hear if/how you solve it! -- jon bennett - www.jben.net - blog.jben.net -- Our newest site for the community: CakePHP Video Tutorials

Re: Need advice for custom ACL

2011-01-26 Thread Zaky Katalan-Ezra
not all of those authorizations are referred to a specific controller's action so cake's built-in ACL isn't very useful. Then what they refer to? It looks like you need to create an engine to create your views on the fly. -- Our newest site for the community: CakePHP Video Tutorials

Re: Need advice for custom ACL

2011-01-26 Thread Ernesto
They don't refer to anything particular. Look @ my example in first post On 26 Gen, 18:40, Zaky Katalan-Ezra procsh...@gmail.com wrote: not all of those authorizations are referred to a specific controller's action so cake's built-in ACL isn't very useful. Then what they refer to? It looks

Re: Need Ajax Help

2011-01-24 Thread andy_the ultimate baker
i have added helpers and component of request handler in controller. i have created a view with delete link as bellow ?php foreach ($users as $user): ? tr td?php echo $user['User']['id']; ?/td td?php echo $this-Html-link($user['User']['name'],

Re: Need Ajax Help

2011-01-24 Thread andy_the ultimate baker
i have added helpers and component of request handler in controller. i have created a view with delete link as bellow ?php foreach ($users as $user): ? tr td?php echo $user['User']['id']; ?/td td?php echo $this-Html-link($user['User']['name'],

Re: Need Ajax Help

2011-01-24 Thread ShadowCross
I'm not seeing anything in your code that would produce a confirmation request. Your delete link in your view is echo $html-link('Delete',array('action'='delete', $user['User']['id']),array('class'='confirm_delete')); Are you attaching JS code to the click event of DOM objects with the

Re: Need Ajax Help

2011-01-24 Thread andy_the ultimate baker
thanks ShadowCross i was looking for the same, thank u, by, Andy On Jan 25, 3:49 am, ShadowCross adri...@jps.net wrote: I'm not seeing anything in your code that would produce a confirmation request.  Your delete link in your view is      echo $html-link('Delete',array('action'='delete',

Re: Need Ajax Help

2011-01-23 Thread Ryan Schmidt
On Jan 24, 2011, at 00:39, andy_the ultimate baker wrote: i am trying to delete item using ajax, Ok, what have you tried so far? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Re: need urgent help

2011-01-18 Thread Tran Cao Thai
from where do you call to the users controller ? On Tue, Jan 18, 2011 at 6:40 PM, andy_the ultimate baker anandghaywankar...@gmail.com wrote: hi, i m trying to redirect the action on a controller but it is redirecting to another controller action. //users_controller.php function

Re: need urgent help

2011-01-18 Thread Ryan Schmidt
On Jan 18, 2011, at 01:40, andy_the ultimate baker wrote: i m trying to redirect the action on a controller but it is redirecting to another controller action. //users_controller.php function admin_add(){ if(!empty($this-data)){

Re: need help with form

2010-11-01 Thread malena.gf
You just need to do this: echo $form-create('Result', array('action' = 'person')); and you will be posting it to that action. There you can do the query you need... anyway, according to your code, you can do this: function findperson() { if (!empty($this-data)) {

Re: need help with form

2010-10-31 Thread cricket
On Sun, Oct 31, 2010 at 5:48 PM, Briko03 nathanrlar...@gmail.com wrote: Here is my view: ?php echo $form-create('Result', array('action' = 'findperson')); echo $form-input('lname'); echo $form-input('fname'); echo $form-submit(); echo $form-end(); ? Here is the action: function

Re: need help with form

2010-10-31 Thread Briko03
Does that mean that I can have a view that does not have a corresponding action? How would i get the form to use person and the values from the input? Sorry for the newb questions... On Oct 31, 8:19 pm, cricket zijn.digi...@gmail.com wrote: On Sun, Oct 31, 2010 at 5:48 PM, Briko03

Re: need help with form

2010-10-31 Thread cricket
On Sun, Oct 31, 2010 at 8:55 PM, Briko03 nathanrlar...@gmail.com wrote: Does that mean that I can have a view that does not have a corresponding action? How would i get the form to use person and the values from the input? Sorry for the newb questions... I don't understand the question,

Re: need help with form

2010-10-31 Thread Briko03
no the model is result The idea is that I have an action called person this action takes url params to find results by the person. So I am trying to create a form that will direct to that action with the params based on the input from the form On Oct 31, 9:21 pm, cricket

Re: need help

2010-10-20 Thread Yasir Arafat Hasib
Cake bake for For linux http://arafats.info/archives/434 For windows http://arafats.info/archives/179 On Wed, Oct 20, 2010 at 2:53 AM, cricket zijn.digi...@gmail.com wrote: On Tue, Oct 19, 2010 at 8:25 AM, Sunil Chugh sunilchug...@gmail.com wrote: 'php' is not recognized as an internal

Re: need help

2010-10-19 Thread Jeremy Burns | Class Outfit
http://book.cakephp.org/view/907/Developing-with-CakePHP Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19 Oct 2010, at 13:28, Sunil Chugh wrote: steps to configure Cake Console and Bake Check out the new CakePHP Questions site http://cakeqs.org and

Re: need help

2010-10-19 Thread cricket
On Tue, Oct 19, 2010 at 8:25 AM, Sunil Chugh sunilchug...@gmail.com wrote: 'php' is not recognized as an internal or external command, operable program or batch file. how to remove this error Is this a Windows setup? That error msg is unfamiliar but it appears to suggest that you don't have

  1   2   3   4   5   >