cakephp 3.0 stable == need help with save assosiated, but data have composite primarykey

2015-03-24 Thread Farid Aditya
help i cann't saving data with save that have assosiated *nb*: *all my table used Inflector::rules('uninflected', ['dontinflectme']), so i don't have proble with naming convension* *this is my model table* class KaryawanTable extends Table { /** * Initialize method * *

Need help on custom Authorization with ACL

2014-06-05 Thread Arun Singh
CakePHP custom ACL Authorization using acos, aros aros_acos Acl tables with extension api_ I am developing an restful API using CakePHP, I am trying to implement a custom authorization which authorize user using ACL, code looks something like ?php App::uses('BaseAuthorize',

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

I need Help.. How to install Cake PHP 2.5.1 on Xampp running on a Windows 8.1 system

2014-06-03 Thread su_osi
https://lh4.googleusercontent.com/-nLw9Z5cAQMA/U4yjLThSyKI/BQo/1A8pwa3w5wo/s1600/CakePHP+error.jpg Here is a copy of my database.php file in the I:xampp\htdocs\cakephp\app\Config folder ('I:\' being the drive I installed xampp into) ?php /** * * * CakePHP(tm) : Rapid

Need help to integrate smary 3.0 with cake PHP 2.0

2014-06-03 Thread Vivek Shah
Hello, I am trying to integrate smarty template with cakePHP and for that I refer http://bakery.cakephp.org/articles/tclineks/2006/10/27/how-to-use-smarty-with-cake-smartyview document and came to know it very old one still i modified some steps and reach till include helpers in

need help with check/uncheck all checkbox [cakephp]

2013-11-18 Thread Sally
I need help with this. I'm creating a checkbox to select or deselect the country options. Please help to give some clues and explaination. I'll be very grateful. Thanks in advance. Below are the code: *Location: View/country/add.ctp file* script type=text/javascript $(document).ready(function

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

2013-11-18 Thread Dave M.
, name = selectedId)); $('#selectall').click(function () { var checked = $(this).is(':checked'); $('.countries input[type=checkbox]').each(function(){ $(this).prop('checked', checked); }); }); On Friday, November 15, 2013 1:05:52 AM UTC-5, Sally wrote: I need help with this. I'm creating

Need help with $this-paginate() in controller

2013-03-11 Thread sjbhowmick
I need some help on implementing the below query for $this-paginate() SELECT * FROM `table1` WHERE name like '%n3%' AND code NOT IN ( SELECT code FROM table2 ) UNION SELECT * FROM table2 where name like '%n3%' I want to get the paged resultset and count value also. -- Like Us on FaceBook

Need help with file uploads

2013-01-23 Thread Shahruk Khan
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)); ? ?php echo $this-Form-hidden(User.id); ? ?php echo $this-Form-input(User.picture_file,

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

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

Need Help about Server Error 500 Blank Page

2013-01-21 Thread mraheel83
It gives blank page and with Debug as 0 it gives Server Error 500 Error and debug log under /app/tmp/ not appending any error. Please advice me how should I fix this problem. Thanks -- View this message in context: http://cakephp.1045679.n5.nabble.com/Need-Help-about-Server-Error-500-Blank-Page

Hello Need Help...

2012-11-12 Thread Rup Gautam
have to make a simple video embed page and want to know the coding for it. i need the page url to be www.mysite.com/dm.php?v=VIDEO_IDhttp://www.mysite.com/yt.php?v=VIDEO_ID ,www.mysite.com/putlocker.php?v=VIDEO_IDhttp://www.mysite.com/yt.php?v=VIDEO_ID

Need help with a find on related HABTM relationship

2012-09-28 Thread Clark Ritchie
I'm looking for some guidance here. I have: User hasAndBelongsToMany Project Schema: Users.id Users.name ... Project hasAndBelongsToMany User Schema: Project.id Project.name ... My join table: projects_users.user_id projects_users.project_id Site belongsTo Project Site.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(

Hello i need help in database schema ready

2012-09-27 Thread Peter Nassef
Hello cakephp member i need table content all country and all cities relate to this countries and other table content units measurement and Thanks :) -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because

Re: Hello i need help in database schema ready

2012-09-27 Thread Maliko V
Can you elaborate what do you need exactly? Us to show you how u create this schema or model using bake ? VM Sent from iPhone smartphone On 2012-09-27, at 11:02 AM, Peter Nassef peter.nas...@gmail.com wrote: Hello cakephp member i need table content all country and all cities relate to

Re: Hello i need help in database schema ready

2012-09-27 Thread Jonathan Sundquist
I don't know how likely you will find a country and all cities within each specific country. You are more likely to find database schemas out there that give you countries with all related states/provinces within. On Thu, Sep 27, 2012 at 10:08 AM, Maliko V malikovinc...@gmail.com wrote: Can

Re: Hello i need help in database schema ready

2012-09-27 Thread Peter Nassef
i need three table .sql content First: All Countries Secound: All Cities Related to Countries Third :Units Measurement On Thu, Sep 27, 2012 at 5:08 PM, Maliko V malikovinc...@gmail.com wrote: Can you elaborate what do you need exactly? Us to show you how u create this schema or model using

Re: Hello i need help in database schema ready

2012-09-27 Thread Jonathan Sundquist
I guess I question what you would like this data set for. Looking at this from a large scale of the United States I know there are a number of city names that are duplicated across multiple states. Now I don't know if this is the same across the rest of the world but you may need to rethink what

Re: Hello i need help in database schema ready

2012-09-27 Thread Paul Willis
I agree knowing what the dataset is for might help with the answer. I don't know but I would have thought Units of Measurement are set per Country rather than by City? Paul On 27 Sep 2012, at 16:44, Jonathan Sundquist jsundqu...@gmail.com wrote: I guess I question what you would like this

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

Need help with reverse routing

2012-08-10 Thread Mark Wratten
I'm looking for some help with reverse routing as the documentation is a bit thin. Particularly for use with rendering objects such as PaginatorHelper. I have a URL in the format - /state/city/page/slug which I route with - Router::connect('/:state/:city/:page/*', array( 'controller' = 'pages',

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: URGENT - NEED HELP IN ASSOCIATION HABTM

2012-06-27 Thread Mark Wratten
Often it is easier to create a model for the linking table, i.e. OrderProduct and use belongsTo Order and Product rather than using HABTM associations. Then query using that model. Mark On Monday, June 25, 2012 11:10:11 AM UTC-4, Caio Vncius wrote: Hello, need a help in a ratio of two-mode

Re: URGENT - NEED HELP IN ASSOCIATION HABTM

2012-06-25 Thread rchavik
putting URGENT in your subject line is a sure fire way to get your questions ignored and get replied with mindless answers such as this one :p On Monday, June 25, 2012 10:10:11 PM UTC+7, Caio Vncius wrote: Hello, need a help in a ratio of two-mode HABTM tables. I have a table called orders

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

Need help populating a select box

2012-05-22 Thread dpinion
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: product_icons id (int) product_id (int, foreign key to a products table) icon_id (int, foreign key to product_icon_types table)

Need help in Ajax

2012-05-01 Thread Ankit Patel
p id=post3 /p p ?php echo $ajax-link( 'Response will be add at the top of selected element', array( 'controller' = 'ajax', 'action' = 'view', 3 ), array( 'update' = 'post3', 'position' = 'prepend') ); ? /p Where to use this and it shows error like Undefined variable: ajax

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

Need Help

2012-03-01 Thread mohit kumar
Hi Experts, Greetings!! Just need some help on good documents and video tutorials on Cake PHP. I am working with WordPress, for last 2 years.I want to learn cake php.I have searched internet and found many good tutorials. But it would be very helpful if you can send me some good links for Cake

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

Need Help: A variable is losing value

2012-02-11 Thread chris varick
I am hoping someone can help me out here. I am pulling my hair out. For some reason when I go to save edited information, form a form, it is creating an entire new record in the database instead of just updating the current record at hand. I am using variable $nId to reference the record id on

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 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

Need help with model design

2011-12-13 Thread Ersin Demirtas
Hi, I am trying to create an events website with cakephp 1.3, I have already created event, comment and user model. The users can add comments for events and add events. in my event view page I want to show the event with its comments and show who added the event and comments for the event. I

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 :

Looking for consultant for cake 2.0 (xampp) with solid database design - we need help yesterday!

2011-10-18 Thread MrKrad
1. Be able to transform databases (can provide poor database models and tons of data) into proper normalized data - accounting knowledge is crucial - ability to identify commonality of many data tables and create common models that can be extended (core document) 2. build simple crud to handle

need help in updateAll

2011-09-08 Thread taqman filler
,'user_id'=$id)); $this-$table-save(); } $this-$table-updateAll('); I need help thank -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

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: I need help to modified code

2011-07-04 Thread Sathia S
On Sat, Jul 2, 2011 at 1:07 AM, taqman filler taqman...@gmail.com wrote: I need to send data from ajax to controller some body help me to modified code this ajax code ajax.js function loadtooltip(obj, $user_id) { //AJAX var req = Inint_AJAX(); req.onreadystatechange =

I need help to use scriptblock

2011-07-01 Thread taqman filler
? $this-Html-scriptStart(array('inline' = false)); $this-Js-get('#a.button'); $this-Js-event('onmouseover','loadtooltip(this,$user_id )'); $this-Html-scriptEnd(); ? I'm doing wrong? please suggest me -- Our newest site for the community:

I need help to modified code

2011-07-01 Thread taqman filler
I need to send data from ajax to controller some body help me to modified code this ajax code ajax.js function loadtooltip(obj, $user_id) { //AJAX var req = Inint_AJAX(); req.onreadystatechange = function () { if (req.readyState==4) { if (req.status==200) {

Need help with routing

2011-06-27 Thread John McLaughlin
Hi - I've taken over a project from another developer and am fairly new to cake. Hopefully, I'm framing my question and approach in an appropriate manner. I have a page that I want to display specific search results and I wish to name it with a specific URL. This URL returns the correct results:

multiple image uploading module using YUI uploader.swf need help

2011-05-23 Thread madusanka hettiarachchi
Guys, I wanna develop multiple image uploading module for the on going projects, here i think to use YUI uploader for that.( http://developer.yahoo.com/yui/yuiloader/). but I couldnt find relevant uploader.swf download link as this page says. (

Please. I need help with ACL. I no understand one thing about restriction in ACL. Can somebody help me?

2011-03-22 Thread mineiro-df
I'm new cake student and i have problem with ACL on this moment. I managed to make the simple system of limited access of the book of the cake put that I realized an interesting thing. The user who has less is accessed by me to the system in fact it manages to do everything if I to work with the

Re: Please. I need help with ACL. I no understand one thing about restriction in ACL. Can somebody help me?

2011-03-22 Thread John Maxim
Then there must be something you were not doing right. Basically, first, you deny access to all controllers from anybody/any group. Then usually, you make/give permission to the admin so they have access to all controllers. It then follows by the other groups which you assign them permissions.

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

Need help with paginate conditions

2011-03-08 Thread heohni
Hi, $options['Member.agent_id'] = $this-Session-read('AgentId'); $options['or'] = array( 'mem_nummer LIKE' = '%'.$q.'%', 'mitg_vorname LIKE' = '%'.$q.'%', 'mitg_nachname LIKE' = '%'.$q.'%', 'mitg_strasse LIKE' =

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(

Need help with bindModel

2011-03-06 Thread heohni
Hi, An Agent has many Agentprovisions A Agentprovision hasOne Payment A Payment belongsTo a Member I am now in my Agent Model / Controller. I would like now to get a results set, where I get - all Agentprovisions -- with its Payment -- its Member the first 2 I get already with

Need help with find paginate syntax

2011-03-05 Thread heohni
Hi, $payments = $this-Member-Payment-find('all', array( 'conditions' = array( 'Payment.member_id' = $id ), 'order' = array('Payment.created DESC') )); I would like to paginate this result, how can I do this? I find it difficult to

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: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-15 Thread designv...@gmail.com
...@gmail.com wrote: I do not think it matters if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well then let me just drop everything, BREAKING NEWS! A NEW USER TO CAKE! Holy shit say it's not so! People

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-14 Thread designv...@gmail.com
if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well then let me just drop everything, BREAKING NEWS! A NEW USER TO CAKE! Holy shit say it's not so! People on the board for more than a month can tell by the name basically

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-14 Thread Meroe Meroe
. -- Larry E. Masters On Fri, Feb 11, 2011 at 6:52 PM, Krissy Masters naked.cake.ba...@gmail.com wrote: I do not think it matters if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well then let me just drop everything

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-12 Thread websurfshop
It's an insecurity complex for freshman programmers. Kind of like going out on our first date and realizing your out with a mature naked cake baker. It's enough to make anyone stutter and repeat themselves . ;-/ People will help, you so saying your new over and over is just irritating.

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-12 Thread ibejohn818
and invented the Dubya-Dubya-Dubya Good luck On Feb 11, 4:52 pm, Krissy Masters naked.cake.ba...@gmail.com wrote: I do not think it matters if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well then let me just drop everything, BREAKING NEWS

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-12 Thread Jeremy Burns | Class Outfit
if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well then let me just drop everything, BREAKING NEWS! A NEW USER TO CAKE! Holy shit say it's not so! People on the board for more than a month can tell by the name basically if your new

New vs Old and need help - FEMALE NEEDS HELP!

2011-02-11 Thread Krissy Masters
I do not think it matters if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well then let me just drop everything, BREAKING NEWS! A NEW USER TO CAKE! Holy shit say it's not so! People on the board for more than a month can tell by the name

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-11 Thread Larry E. Masters
Old hag might get some of us old timers attention. -- Larry E. Masters On Fri, Feb 11, 2011 at 6:52 PM, Krissy Masters naked.cake.ba...@gmail.comwrote: I do not think it matters if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-11 Thread thatsgreat2345
I think the ability to say whether you're new/old doesn't depend on how long you've been using cake but you knowledge of the ins and outs of cake and how it all works. On Feb 11, 4:52 pm, Krissy Masters naked.cake.ba...@gmail.com wrote: I do not think it matters if your new and need help or old

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-11 Thread Ryan Snowden
Or Noobhag Neat On 12 February 2011 09:04, Larry E. Masters php...@gmail.com wrote: Old hag might get some of us old timers attention. -- Larry E. Masters On Fri, Feb 11, 2011 at 6:52 PM, Krissy Masters naked.cake.ba...@gmail.com wrote: I do not think it matters if your new and need help

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-11 Thread Jeremy Burns | Class Outfit
hag might get some of us old timers attention. -- Larry E. Masters On Fri, Feb 11, 2011 at 6:52 PM, Krissy Masters naked.cake.ba...@gmail.com wrote: I do not think it matters if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well

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

need help

2011-01-29 Thread andy_the ultimate baker
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 code is as fallows ?php echo $form-

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 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

need help in javascript dropdown,

2011-01-26 Thread andy_the ultimate baker
hi, good morning, i m working on project where i want create two drop down, in first i will choose state so that the next drop down should how the cities with respect to the state selected in first. all that i want to create in javascript, for that i have collected all state_code and its cities

Re: Hi need Help: How to log-out from Acl ?

2011-01-01 Thread John Maxim
Hi Thanks Jeremy, but let's say we deny group manager and user to have access to users model, and the logout function is located in users controller; would it be a good suggestion to place the logout function in posts controller instead because it is a public page (controller).. Is it less

Re: Hi need Help: How to log-out from Acl ?

2011-01-01 Thread John Maxim
I think I found a solution: $this-Auth-allow('logout'); Is there a better way to logout other than allowing this in users controller? Regards, Maxim On Jan 1, 10:21 pm, John Maxim goog...@gmail.com wrote: Hi Thanks Jeremy, but let's say we deny group manager and user to have access to users

Hi need Help: How to log-out from Acl ?

2010-12-31 Thread John Maxim
Hi, I'm right here: http://book.cakephp.org/view/1552/Logout May I ask if anyone could help to point out how exactly am I to log- out now ?? I went through some comments on that page suggested to $this-Auth-allowedActions = array('logout'); What's your suggestion? Kind regards, Maxim Check

Re: Hi need Help: How to log-out from Acl ?

2010-12-31 Thread AD7six
On Dec 31, 3:01 pm, John Maxim goog...@gmail.com wrote: Hi, I'm right here:http://book.cakephp.org/view/1552/Logout May I ask if anyone could help to point out how exactly am I to log- out now ?? You access the function logout which after following the tutorial you will have created in

Re: Hi need Help: How to log-out from Acl ?

2010-12-31 Thread John Maxim
Hi, thanks for the reply.. function logout() { $this-Session-setFlash('Good-Bye'); $this-redirect($this-Auth-logout()); } I created it in usersController alright. I access it by creating a link to it am I correct? I'm looking for a uniform way to put it

  1   2   3   4   5   >