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
htt
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 fr
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
fram
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 = $thi
for ($i =0 ; $i<4;$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($dat
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.
--~--~-~--~~
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:[
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 wro
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 $useTabl
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
create('User' ,array('action' => 'add')); //this create
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
htac
I think in your htaccess file. Something along the lines of
RewriteEngine on
RewriteRule ^/foo/(*) webroot/$1 [L]
RewriteRule^$webroot/[L]
RewriteRule(.*) webroot/$1[L]
On May 3, 1:49 pm, MikeK <[EMAIL PROTECTED]> wrote:
> The specific route to fix our paym
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 functi
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 r
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;
27;A') part follows PHP syntax, where =>
> denotes a relationship between the key 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 '<
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
input("Product.{$i}.id", array('value' =>
$node['id'], 'label' => false));
echo $form->input("Product.{$i}.qty"));?>
This is place within a fo
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 fi
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;
>
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 wi
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, Mar
21 matches
Mail list logo