Re: cakephp ecommerce work

2011-11-30 Thread simonb
Did you ever get someone to help you with this? Simon -- View this message in context: http://cakephp.1045679.n5.nabble.com/cakephp-ecommerce-work-tp4634234p5036192.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials

Yorkshire cakers

2008-09-10 Thread simonb
Anyone in the dewsbury, England, West Yorkshire area who has used cake? --~--~-~--~~~---~--~~ 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

Re: $html-textarea displaying actual html codes

2008-07-12 Thread simonb
You need to sit down and design a basic application in cakephp and read all the resources. I don't mean to be rude but I spent a good 3 months learning the conventions and inner workings for cakephp and it proved to be useful. You seem as though you don't have the basic understanding of this

Re: need some help in data saving using cake's own functions.

2008-07-11 Thread simonb
for ($i =0 ; $i4;$i++) { echo 'Iteration # '.$i; $this-model-save($distributedImp); $res = $this-model-findAll(); print_r($res); } for($i=0;$i 4 ; $i++) { $data = $this-Model-create(); $this-Model-save($data); }

Re: need some help in data saving using cake's own functions.

2008-07-11 Thread simonb
you need to use $data = $this-ModelName-create(); this populates the model with the default data and created the structure for the data. For example if you have a table model with the following structure id int name varchar(100) defaul 'My Name' age int(3) default 12 Then using $data =

Re: Controller question

2008-07-06 Thread simonb
You can use $this-requestAction('/controller/action') from within a view is this what you mean. On Jul 6, 12:48 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi again. Is there anyway to detect from what view a controller action was called? Thanks.

Re: Check for neew with ajax

2008-06-22 Thread simonb
Sound like an ideal candidate for reverse AJAX. I have used JSON for a couple of projects. You need to just google for JSON On Jun 22, 2:18 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: That's a really good idea, but I have never done this. Can you tell me a bit more about the { move:[4, 1],

Re: Url problem

2008-06-21 Thread simonb
Whatever it is will most likely involve routes. You can do almost any form of redirect with that. Like Ian says, a little bit more information would help. On Jun 21, 2:41 pm, Ian Zepp [EMAIL PROTECTED] wrote: You are going to have to provide more context than that, sorry. AbhinavZone wrote:

Re: Strange query being generated by CakePHP

2008-05-14 Thread simonb
very strange what is you table structure? On May 14, 9:21 pm, TracyB [EMAIL PROTECTED] wrote: I have a model using a table that's been around forever, so it's not a CakePHP friendly name. My model is set up like so: class Quote extends AppModel { var $name = 'Quote'; var $useTable =

Re: cook up web sites fast

2008-05-05 Thread simonb
You are most likely running all the sites from the same directory so the htaccess applies to all websites. assuming you are using apache you need to create a seperate entry in your virtualhosts to point to the cakephp webroot. so your default home page for cake at ~/cake/ this is where your

Re: Making a field Unique

2008-05-05 Thread simonb
assuming you model is called User and you have all the validation rules applied. in your controller you need to specify var $helpers = array('Html', 'Form'); This gives you access to the helpers in the view. To create a form in the view ?php echo $form-create('User' ,array('action' =

Re: Route Redirect question

2008-05-03 Thread simonb
I think in your htaccess file. Something along the lines of IfModule mod_rewrite.c RewriteEngine on RewriteRule ^/foo/(*) webroot/$1 [L] RewriteRule^$webroot/[L] RewriteRule(.*) webroot/$1[L] /IfModule On May 3, 1:49 pm, MikeK [EMAIL PROTECTED] wrote: The

Re: Pagination with Filter/Search Box

2008-04-30 Thread simonb
You could have a recursive loop. for example you could be redirecting to an action that requires you to be authenticated. This action itself needs authenticating and so you get sent back to the original action thus you end up with an endless loop. do you have code for the skateparks/index

Re: Making a field Unique

2008-04-20 Thread simonb
Assuming you are using 1.2 I have created this snippet in the model. Could be but in app_model if it is required. //checks to see if the given fieldname is unique with the model function checkUnique($data, $fieldName) { $valid = false; $this-recursive = -1;

Re: Good cakephp developer

2008-04-20 Thread simonb
I would like to add to this. I won't mention names but sometimes you may be asked to do some work and not get the full story about what the requirements are. It would be advisable to get some form of contract containing. 1. The specifics of the task itself. what do they want you to do. 2. What

Re: Login auth redirects wrong with sifr..

2008-04-19 Thread simonb
On Apr 19, 5:03 pm, Mech7 [EMAIL PROTECTED] wrote: I am using sifr, and some other javascripts which call othr files but then the login does not work anymore correctly for example it goes to: http://localhost/scms/admin/users/sifr/myriad_pro.swf Does anybody know a proper way to fix this,

Re: a couple of small things I can't figure out

2008-04-19 Thread simonb
findAll(array('Table.categoryt' A ) Try that. Not so sure about the second problem I use css to set the width regarding multiple records use this ?php echo $form-input(Product.{$i}.id, array('value' = $node['id'], 'label' = false)); echo $form-input(Product.{$i}.qty));? This is place within

Re: a couple of small things I can't figure out

2008-04-19 Thread simonb
of the array and the value. To have a condition where you want rows that DON'T match, use array('Table.categoryt' = 'NOT A'), or '!= A', or ' A'. One of those should work (it's late, and I can't be bothered to check which is correct) Steve On Apr 19, 5:57 pm, simonb [EMAIL PROTECTED] wrote

Re: CSS Acting Very Bizarre

2008-04-15 Thread simonb
Are you sure that you have used the correct selector for an id it should be #header{ color: #000; } if you have used .header{ color: #000 } this declares a class style. Just a thought!! On Apr 15, 7:30 pm, Chez17 [EMAIL PROTECTED] wrote: I am a CakePHP beginner and I am having some

Re: CSS Acting Very Bizarre

2008-04-15 Thread simonb
Sorry.. just seen the fact you used #header. very strange. Have you used the developer tools in firefox? On Apr 15, 8:22 pm, simonb [EMAIL PROTECTED] wrote: Are you sure that you have used the correct selector for an id it should be #header{ color: #000; } if you have used .header

Re: how to validate fields that are not part of a model?

2008-03-29 Thread simonb
You need to create a schema in the model. I have done this in a couple of projects where no tables exists for the model yet I needed to validate some user input. See the previous thread below. http://groups.google.com/group/cake-php/browse_thread/thread/3a028fb7f1cc2297 On Mar 29, 10:56 am,