Router::connect with :action

2012-08-08 Thread sanjeev
Hello, This is typical problem in CakePHP routing When I Router::connect('/home/vasti/:action/*', array('plugin'=>'vastipatrak','controller' => 'vastipatraks')); url /home/vasti/edit/4 works fine. but url /home/vasti/ is not working which i expect to redirect to index page. I am developing C

Re: Fat CakePHP

2012-08-08 Thread sanjeev
I think ChisApps can only understand my pain. for time being i have to delete Test folder. hope somebody will take a lead will fork CakePHP Lite. On Tuesday, 7 August 2012 17:50:07 UTC+5:30, sanjeev wrote: > > Hello Everybody, > > I have developed CMS in CakePHP but Size of CakePHP installation

Re: Fat CakePHP

2012-08-08 Thread sanjeev
I think ChisApps can only understand my pain. for time being i have to delete Test folder. hope somebody will take a lead will fork CakePHP Lite. On Tuesday, 7 August 2012 17:50:07 UTC+5:30, sanjeev wrote: > > Hello Everybody, > > I have developed CMS in CakePHP but Size of CakePHP installation

Re: shopping cart

2012-08-08 Thread Greg Skerman
a typical 'simple' shopping cart will have a model arrangement something like this Product Order Customer Customer HasMany Order (a customer can make more than one order) Order HasMany Products (an order contains many products) Customer signs up then looks at a list of products - on selection of

Re: Fat CakePHP

2012-08-08 Thread euromark
you do realize that you already made as waste our time on this way beyond your 6 minutes.. right? :) to close this chapter for good, ChrisApps is right about the test stuff being not necessary for deployment. result: 2MB - done. that answers the initial question and lets us go back to the real i

Re: Problem with controller redirect

2012-08-08 Thread aquariman
One other point: I have a beforeSave() call in my model. When I disable that callback the redirect works fine. But even if all the callback does is return true, the problem noted below will occur. With callback and no modification to Controller.php the redirect fails. With no callback and no mo

Problem with controller redirect

2012-08-08 Thread aquariman
Hello, Cake 2.1.3. Here's what I've got in my controller: function company_info() { if ($this->request->is('post')) { if ($this->Business->save($this->request->data)) { $this->redirect($this->request->here); } else { $this->raiseWarning('Your information could not be saved'); } } } Problem is,

Problem encountered: about passing multiple paramters from view (html helper: link) to an action ($arg1 = null, $arg2 = null) that the passed parameter became empty & null strings

2012-08-08 Thread Andante Cheng
Dear all: I would be grateful if you could help me on this issue what I have been working on it few days: my problem is: about passing multiple paramters from view (html helper: link) to an action ($arg1 = null, $arg2 = null) that the passed parameter became empty & null strings 1. First, the

[no subject]

2012-08-08 Thread vikram sharma
Any body suggest me installtion pf cake php I ma new. -- * Vikram Sharma | Cell +9466205050 |* *E-Mail : vikramka...@gmail.com | * *>>> My Quotes * *

Re: Can anybody help me with this postLink() delete?

2012-08-08 Thread els
Hi amprodes, I had the same problem. The cookbook states that you should not use postlinks inside another form. I think removing the Account form will do the trick. hope this helps, Els Move the postlink On Friday, August 3, 2012 3:32:33 PM UTC+2, amprodes wrote: > > * What I did* > > *1.

Re: PHP Speedy Helper Problems

2012-08-08 Thread jj
Hi Marcelius, are you still active in CakePHP Development? I got a Question about your PHPSpeedy Helper. Please Contact me Am Donnerstag, 5. Februar 2009 10:04:48 UTC+1 schrieb Marcelius: > > I've found the problem: I've used v0.4.6, and you have probably > v0.5.2. I'll update the artice sinc

Re: Thread Safety and getLastInsertID

2012-08-08 Thread Siddhant Prabhakar
Thanks. cleared a big headache.. it was like questioning your own wife; does she/it or does she/it not? lol On Tuesday, May 1, 2007 11:17:33 AM UTC+5:30, Dr. Tarique Sani wrote: > > From > http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_last-insert-id > > "The ID that

shopping cart

2012-08-08 Thread anfuet
Hello everybody. I need a very simple shopping cart, but i don't know how i can create a shopping cart. I know there are some plugins but it is for my study exam. Can you help me, please? Here you can find my post in cakephpforum.net: link

Re: send emails

2012-08-08 Thread raj kumar Pustela
hi all, > > I am struggled one thing if any one know please help me. > how to create google maps in cakephp 2.0.3 through lat and lang > dynamically. > and how to send emails using wamp server . -- You received this message because you are subscribed to the Google Groups "CakePHP"

[no subject]

2012-08-08 Thread vikram sharma
Hello Any body Suggest me to easy way installation of cake php -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@goo

Re: 3.0: a peek into CakePHP's future

2012-08-08 Thread Kunal's Cake
Hi i am using cake php in windows in xampp server , when i am trying to do manually bake application it is working fine , but when i use console mode after setting environment vasriables and try to bake in console mode i get this errors Plz help me rectify this error *Warning*: include(Cake\

Re: Plugin Model Custom functions not accessible in controller

2012-08-08 Thread Luis Cano
It looks like this... public $hasAndBelongsToMany = array( 'Something' => array( 'className' => 'Something', 'joinTable' => 'other_models', 'foreignKey' => 'dog_id', 'associationForeignKey' => 'something_id', 'unique' => false

Re: Fat CakePHP

2012-08-08 Thread gremlin
Even using the worst hosting in the world you still should only ever have to upload the core one time. If you have to wait 5 minutes for your isp to move the files to the remote server each time then you are uploading your app and a fresh copy of the core every time you update the site? That is

Re: Fat CakePHP

2012-08-08 Thread lowpass
Wow, you're really nit-picky. I think I'll drop this thread and go have a coffee. On Wed, Aug 8, 2012 at 3:43 PM, Christopher Castro wrote: > 1- But you're uploading the libs just one time. > No that's no true. Only true if all your clients/projects are hosted in a > server managed by yourself. >

Re: Fat CakePHP

2012-08-08 Thread Christopher Castro
Yes, and I agree with you. And of course hosting space is not an issue. What I was trying to say is: Bandwidth !== HDD space. And that may be an issue. Let's say that an ordinary person has an upload bandwidth of 2Mbps (Just and ordinary *a*dsl line 50d/2u). That may take up to 6 minutes when uplo

Re: Fat CakePHP

2012-08-08 Thread John Hardy
Wow, size is a non-issue. You can lease a server instance from rackspace with 10GB of disk for 15 dollars a month. Tell your clients to forgo their lattes for 3 days or bum change in front of their office. Do you put plastic covers over your floor mats? On Aug 8, 2012, at 12:43 PM, Christopher

Re: Fat CakePHP

2012-08-08 Thread Christopher Castro
1- But you're uploading the libs just one time. No that's no true. Only true if all your clients/projects are hosted in a server managed by yourself. 2- If you have a crappy DSL line just go make some coffee No, my line is not crappy, it's just an *A*DSL line, probably the same you use at home. Al

Re: cakephp probleme with pagination and file_get_contents

2012-08-08 Thread lowpass
It looks to me that the problem is that the $origins and $destinations are not being escaped. For example: M'hamid => M%27hamid El Jadida => El%20Jadida So you need to do something like this: $destination.= urlencode($hotels[$i]['Hotel']['cityName']).','.urlencode($hotels[$i]['Hotel']['countryN

Re: Plugin Model Custom functions not accessible in controller

2012-08-08 Thread lowpass
What do the associations look like in Dog.php? On Tue, Aug 7, 2012 at 4:41 PM, Luis C wrote: > Ok, > It is even worse now. > > Let's say I have a hasAndBelongsToMany association in Dog.php with another > table (Model). And then in the Controller I have the following > > $this->Dog->find('all'); >

Re: Fat CakePHP

2012-08-08 Thread lowpass
But you're uploading the libs just one time. If you have a crappy DSL line just go make some coffee. As for bandwidth, if you have a hosting package that dings you for a single upload of ~10MB then you need to find a new provider. On Wed, Aug 8, 2012 at 8:29 AM, Christopher Castro wrote: > Yeah s

Re: Help with getting data

2012-08-08 Thread euromark
virtual fields are your friend: http://book.cakephp.org/2.0/en/models/virtual-fields.html Am Mittwoch, 8. August 2012 20:22:18 UTC+2 schrieb Daren W: > > I am in the learning process and would like to know how to write the two > below statements in cake format, could someone please advise. > > S

Help with getting data

2012-08-08 Thread Daren W
I am in the learning process and would like to know how to write the two below statements in cake format, could someone please advise. SELECT SUM(credit) - SUM(debit) AS total FROM `bids` AS `Bid` WHERE `Bid`.`user_id` = 3 LIMIT 1 SELECT SUM(bids) AS total FROM `bidbutlers` AS `Bidbutler` LEFT

Hi

2012-08-08 Thread Dilip Bakotiya
Hi i need the php developer for long term as remote developer . send me your skype and mail id to for further talk Thanks -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com. To unsubscri

Re: Problems with ajax and security component.

2012-08-08 Thread MetZ
I am struggling with the exact same problem.. If anyone have a suggestion??? see: http://stackoverflow.com/questions/11869336/cakephp-2-1-making-a-jquery-ajax-call-with-security-component-activated -Tom kl. 21:41:18 UTC+1 torsdag 8. desember 2011 skrev porangi.chris følgende: > > Hi, > > I'm h

Re: Problem with ordering by a calculated field

2012-08-08 Thread Mark Wratten
Oops, should be SELECT acos(sin(radians(P1.latitude)) * sin(radians(P2.latitude)) + cos(radians(P1.latitude)) * cos(radians(P2.latitude)) * cos(radians(P1.longitude) - radians(P2.longitude))) * 3963.1 AS distance On Wednesday, August 8, 2012 12:47:37 PM UTC-4, Mark Wratten wrote: > > Generally,

Re: Problem with ordering by a calculated field

2012-08-08 Thread Mark Wratten
Generally, the Haversine Formula is the best one to calculate distance between two points, given the lat/long of both the client and the hotel. See http://en.wikipedia.org/wiki/Haversine_formula for more information. SELECT acos(sin(radians(P2.latitude)) * sin(radians(P2.latitude)) + cos(radians

Re: Select Last Record From Database

2012-08-08 Thread Mark Wratten
In your beforeSave callback you could include a cal that does something like - SELECT MAX(invoice_number) FROM table, then in your code, generate the next number. Though if the code is going to be used by many people simultaneously, you would need to create a unique index on that column, to pre

Re: Why is composite primary key bad?

2012-08-08 Thread Mark Wratten
One possible exception might be HABTM tables, consisting of just the foreign keys to the related tables. MySQL only supports clustering on the primary key and using a composite primary key would give you a covered index, which in theory should perform a bit better. Though in practice, I have no

cakephp probleme with pagination and file_get_contents

2012-08-08 Thread yassine yas
*salam* *my english is not good* *well, i develop a back-end for a mobile application with cakephp* *i have a fuction that list cities and i want to calculate distance from the user the this cities the code is:* $origins='origins=casablanca,maroc'; $destinations='&destinations='; $u

cake-php@googlegroups.com

2012-08-08 Thread simonjpa
-- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group

Re: Fat CakePHP

2012-08-08 Thread Christopher Castro
Yeah sure, in a perfect world where unicorns live and clouds are made of sugar... ¬¬ Bandwidth is not unlimited or free. And your common-asymmetric-adsl line can beat your patient, time and money when uploading up to 15Mb to your common-shared-hosting. --- I always remove "Cake/Tests|TestSuite/*

Re: Fat CakePHP

2012-08-08 Thread euromark
seriously? if you have trouble accepting the fact that webspace is literally free nowadways (> 1000 GB), and that the app itself and its assets (images) will usually cake up 5 times more space in the long run, you really got your facts wrong. what exactly is the problem with 5-10 MB? Eve

Re: Plugin Model Custom functions not accessible in controller

2012-08-08 Thread Steve Found
On 07/08/12 21:41, Luis C wrote: Ok, It is even worse now. Let's say I have a hasAndBelongsToMany association in Dog.php with another table (Model). And then in the Controller I have the following $this->Dog->find('all'); print_r($this->OtherModel); exit; Instead of getting an instance of Ot

Re: Plugin Model Custom functions not accessible in controller

2012-08-08 Thread Steve Found
On 07/08/12 19:29, Luis C wrote: Hello, I got a weird issue in CakePHP 2.2. I have created a plugin, let's call it PluginName, and within PluginName I have the following: Controller: - DogsController - CatsController Model - PluginNameAppModel.php - Dog.php - Cat.php (all mode

Re: Fat CakePHP

2012-08-08 Thread Cees-Jan Kiewiet
Deleting test is my thought exactly if you really want to cut down the file size. But I would be more interested why the size is a problem in the first place? On Wed, Aug 8, 2012 at 8:46 AM, Sergei wrote: > Well you can delete Test (5 Mb) folder for sure. > > -- > Sergei > > > On Tuesday, August