Yeah I have the same issues in different areas of my app with no success.
Same with delete, need to refresh after the first delete, and on login. My
login is on the index page. When you login it redirects you back to the
index page showing login, hit refresh and it shows Logged in...
If you find
I have moved a few of my functions to a new controller and trying to get
them to work.
I have my passwords_controller where User can update thier password / forgot
or what not
var $uses = array('User');
//does not have its own model
now in my function
function forgot() {
er-22-09 7:42 AM
To: CakePHP
Subject: Re: Is Ajax request
How is the HTML looking? Does it look the same as the other links?
Enjoy,
John
On Oct 21, 6:59 pm, "Dave Maharaj :: WidePixels.com"
wrote:
> I have this function where its first called normally by a link (http
>
I have this function where its first called normally by a link (http
request). Once loaded the pagination links are done via Ajax. I have 'all',
'new', 'archive' links which all get called to paginate the result using
Ajax and jquery. Problem is when i go to posts/index it works fine, click
'all'
I have my site index www.site/ go to
Router::connect('/', array(
'controller' => 'pages',
'action' => 'display',
'home'));
How can I set it to check if logged in to redirect somewhere, define
template layout and general function stuff? Do you make a normal func
r a protected action
> > > like / posts/delete/123. Where the request comes from has little
> > > relevance in the first case. In the second case it really has
> > > little relevance too since you will be much more concerned about a
> > > valid session identifyin
ertian controller I can just define
admin_edit() in that individual controller. But most of the time, it works
just fine.
Anyway, hope this helps you decide.
- Jamie
On Oct 20, 8:28 am, "Dave Maharaj :: WidePixels.com"
wrote:
> Can you, or suggest , reasons for or not to
>
> cr
Can you, or suggest , reasons for or not to
create an admin_controller and keep all admin functions separate from the
other controllers?
Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To
the code that delivers the input data to the model, so that we
may be convinced that the data you receive from the form is also the data
sent to the model for validation :) Also possibly the view code for the
form.
Enjoy,
John
On Oct 19, 5:15 pm, "Dave Maharaj :: WidePixels.com"
ular Expression
On Oct 19, 2009, at 10:41 AM, Dave Maharaj :: WidePixels.com wrote:
I have 'rule' => '/^[a-zA-Z]$/', to allow only letter characters but it does
not seem to be working.
Is there something wrong with this expression?
I think you need to specify how many c
I have 'rule' => '/^[a-zA-Z]$/', to allow only letter characters but it does
not seem to be working.
Is there something wrong with this expression?
Thanks,
Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"C
I got it working.
Dave
-Original Message-
From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com]
Sent: October-19-09 2:16 PM
To: cake-php@googlegroups.com
Subject: Validation Help - All code Included
This is driving me crazy.
User Model:
var $validate = array
This is driving me crazy.
User Model:
var $validate = array(
'username' => array(
'usernameRule-1' => array(
'rule' => array(
'notEmpty'),
'message' => 'Please choose a Username',
'r
I mean when I hit submit the form gets sent and comes back invalid but
nothing is marked as invalid (even when I leave it completely empty). Then
same page without refreshing or anything just hit submit on that same
returned form it comes back with errors. Even if I have letters / numbers in
the f
No matter what I try I cant get validation to work properly. (i am only
trying to get it working so please no comments about numbers in a firstname
:)
simple validation on 1 field:
'firstname' => array(
'firstnameRule-1' => array(
'rule' => 'alphaNumeric',
'message' => 'Only alphabets
I have my User which has 5 HABTM relations.
Now normally all the HABTM info is displayed in User/edit after a normal
bake. My question is, because I am setting it up so the User can edit each
HABTM selection individually rather than the standard User/edit can i put
the action / functions in each
it in your case!
The same applies to the other method, getAffectedRows().
Enjoy,
John
On Oct 17, 2:36 am, "Dave Maharaj :: WidePixels.com"
wrote:
> Ok I am trying the getNumRows();
>
> I have my query which has this in the sql debug at the bottom of the
> page
>
>
he view show some message for the user to stop messing around :D or
some kinder message like "No information found".
Enjoy,
John
On Oct 16, 9:03 am, "Dave Maharaj :: WidePixels.com"
wrote:
> There is another that I found.
>
> Model::hasAny
>
> Returns true if
the view show some message for the user to stop messing around :D or
some kinder message like "No information found".
Enjoy,
John
On Oct 16, 9:03 am, "Dave Maharaj :: WidePixels.com"
wrote:
> There is another that I found.
>
> Model::hasAny
>
> Return
}
return $valid;
}
Dave
-Original Message-
From: John Andersen [mailto:j.andersen...@gmail.com]
Sent: October-16-09 2:57 AM
To: CakePHP
Subject: Re: Check Valid
I think you can use the models method getNumRows() which returns the number
of rows returned in the
ject.
>
> $this->display = $this->Session->read('Auth.User.display');
>
> On Oct 15, 8:20 pm, "Dave Maharaj :: WidePixels.com"
>
> wrote:
> > How can i access session data in beforeRender or before Filter?
>
> > i have $display = $this-&
How can i access session data in beforeRender or before Filter?
i have $display = $this->Session->read('Auth.User.display');
and i have that all over the controller. Is there a way i can define that in
a before function and access it from there instead of that long snip
allover?
I tried
If you have posts 1, 2, and 3 for example and you type in view/4 and there
is no 4 the page still renders but it has no data. How can you prevent this
?
I have
if ($this->Post->validPost($id) == true) {
which checks the DB for that id if found then do as normal
} else {
return them bac
I have a login module on the side of each page if not logged in.
Problem is when a user logs in or out from the home page which is the
$this->Auth->loginRedirect and $this->Auth->logoutRedirect it still shows
logged in or login. How can i refresh the page or something so the page
updates correctl
rebuilding it. And checking line by line
to see where / if it break again.
Thanks,
Dave
-Original Message-
From: brian [mailto:bally.z...@gmail.com]
Sent: October-14-09 1:54 PM
To: cake-php@googlegroups.com
Subject: Re: Debug Error?
On Tue, Oct 13, 2009 at 4:16 PM, Dave Maharaj
Anyone seen this?
The script tried to execute a method or access a property of an incomplete
object. Please ensure that the class definition 'ValidationBehavior' of the
object you are trying to operate on was loaded _before_ unserialize() gets
called or provide a __autoload() function to load th
I am trying to re-arrange the folders on the server
I would like to place cake folder outside www directory
i have:
/cake
/public_html
/www(all public viewable files)
/mysite
/app
/webroot index.php:
Can someone point out what the corect structure woul
: cake-php@googlegroups.com
Subject: Re: Debug Error?
What do you have in the layout file immediately after that?
Also, do you have any code using Debugger class anywhere? That'll kill your
app if debug is set to 0.
On Tue, Oct 13, 2009 at 1:45 PM, Dave Maharaj :: WidePixels.com
wrote:
I stripped out the controller function leaving it like this
function view($id) {
$this->layout = 'default_right';
$this->set('reports', $this->Report->read(null, $id));
}
And it still will not work. So comment out //$this->layout =
'default_right';
and it works.
Makes no sense , the $
I have one page that is blank when i turn debug to 0. Every page on the site
works except the one.
Set debug to 1 or 2 and i can access the page. But there are no errors
reported anywhere, view is normal with all the info i need showing up.
All that gets rendered with debug 0 is
http://www.w
, "Dave Maharaj :: WidePixels.com"
wrote:
> Hey AD,
>
> Maybe (probably) I am lost on what I read.
>
> I have my domain on a non dedicated hosting platform. But the only
> thing in my domain is my site.
> I thought what I read about "If the cookie's path is s
.com]
Sent: October-13-09 11:24 AM
To: CakePHP
Subject: Re: Session / Security
On 13 oct, 15:48, "Dave Maharaj :: WidePixels.com"
wrote:
> Thanks for the links
>
> I am on shared hosted server and found when reading
>
> "If the cookie's path is set to '/
You might want to read this
> :http://be2.php.net/manual/en/session.security.php
>
> On Sat, Oct 3, 2009 at 11:35 PM, Dave Maharaj :: WidePixels.com <
>
>
>
> d...@widepixels.com> wrote:
> > Right on.
>
> > In my app nothing is passed in the url all my
Just hoping for a little info here.
I view my cookie set on my site and see content :
0444539fe23155487eb458458d7ef40f
I have not written anything to it.But was wondering what would this info be?
I know if i delete the cookie i get logged out of my site so some auth info
is in there. But what o
array('controller' => 'experiences', 'action' => 'index', 'manage'
=>true) );
$html->link('Experience', array('controller' => 'experiences', 'action' =>
'index', 'manage' =&g
ctober-12-09 4:31 PM
To: CakePHP
Subject: Re: Defining URL
Well if you are using a prefix or a plugin, index is required to determine
the correct route, else it will fail.
On Oct 12, 11:28 am, "Dave Maharaj :: WidePixels.com"
wrote:
> How can you drop index off the url?
>
How can you drop index off the url?
link('Experience', array('controller' =>
'experiences', 'action' => null, 'manage' =>true));?>
Tried with null, '', or removing action completely but still shows
manage/experiences/index
Thanks
Dave
--~--~-~--~~~---~--~~
I hate all the pagination params in the controller so I did this
To paginate all active users for an example
controller:
$this->paginate['User'] = $this->User->userPagination();
$this->set('users', $this->paginate('User', array('User.id' =>
$this->User->getActiveUsers(;
model:
Build
Not sure if this is even possible. Looked everywhere and tried many
different things but still no luck.
I am editing an image using jCrop, sumbit the request AJAX and the plan is
to have the thumbnail update with the newly edited version.
I have it all running fine except when i submit the form d
Firefox believe it or not.
-Original Message-
From: euromark (munich) [mailto:dereurom...@googlemail.com]
Sent: October-11-09 2:15 PM
To: CakePHP
Subject: Re: Cache question
did you experience that in the almighty crap-explorer IE?
On 11 Okt., 18:33, "Dave Maharaj :: WidePixel
I have an element that when the user logs in says Welcome Test Account One
(being my dummy user's name)
I logout and login as a different user and it shows Welcome Test Account One
until i hit refresh then it shows Test Account Two
I have wrapped the element in a block.
Logout destroy sessi
Something like this:
$('#GaragePartAddfrompartlistForm').bind('submit', function() {
var queryString = $('#GaragePartAddfrompartlistForm').formSerialize();
$(this).ajaxSubmit({
//befo
Not sure if its a cake thing or not but maybe someone has seen this error
somewhere along the way.
In Firefox i see
Warning: Expected ',' or '{' but found 'li'.
But its on every page i go to and line 0.
Any thoughts?
Dave
--~--~-~--~~~---~--~~
You receive
Try sort(); or another standard php sorting function.
http://ca3.php.net/manual/en/function.sort.php
-Original Message-
From: albe [mailto:radialremo...@gmail.com]
Sent: October-10-09 11:45 AM
To: CakePHP
Subject: Re: Use Set::sort
Ok I have found the answer: in my cakephp version th
nset Last-Modified
# END Remove Last-Modified Header
-Original Message-
From: majna [mailto:majna...@gmail.com]
Sent: October-09-09 5:53 PM
To: CakePHP
Subject: Re: JS / CSS Compression
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
application/xhtml+
m: Miles J [mailto:mileswjohn...@gmail.com]
Sent: October-09-09 4:40 PM
To: CakePHP
Subject: Re: JS / CSS Compression
Well look at your request/response headers. Is gzip compression even
working?
On Oct 9, 11:34 am, "Dave Maharaj :: WidePixels.com"
wrote:
> Could you explain
you is to never rely on apache,
do it the cake way...please it is too easy
On Oct 9, 5:41 pm, "Dave Maharaj :: WidePixels.com"
wrote:
> I have the asset helper up and running. Check y-slow and everything
> gets an A except
>
> Grade C on Compress components with
I have the asset helper up and running. Check y-slow and everything gets an
A except
Grade C on Compress components with gzip
There are 2 plain text components that should be sent compressed
* /styles_typography_125509.css
* jquery_jqueryform_ofl_125509.js
Apache 2.x
http://stackoverflow.com/questions/1024518/cakephp-block-region
<http://stackoverflow.com/questions/1024518/cakephp-block-region>
hth - S
2009/10/8 Dave Maharaj :: WidePixels.com
I have 2 layouts crated one with a left side menu other with a right.
In the layout i have the standard
whic
I have 2 layouts crated one with a left side menu other with a right.
In the layout i have the standard
which loads the view. But how can i determine what to put on the sides?
The side menu modeuls can be elements, but how do I call them so i can say
on say index user login module sponsors e
Any idea how to remove "page" from the pagination?
So it shows search/2 rather than search/page:2
I know its been asked and still no luck in this answer.
Thanks
Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
I have
$this->cakeError('profile');
in the controller if a user does not have permission to view a specific
profile
so i have my function profile() in my app_error and the view in errors but
all i get is a blank page.
I simply want to display the error page.
Is this what the app_error is f
one is a User
and User hasOne group (Scout or Agent)
What is the right way to set this up? I cant find anything anywhere about
this type of setup?
Dave
-Original Message-
From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com]
Sent: October-07-09 2:05 AM
To: 'cake-php@google
I have 2 groups which are added by their respectful controller/model (Agent,
Scout)
So whena Agent or Scout is created in the AROS Table is shows up
id parent_id model foreign_key
alias lft rght
92 3 Scout 4
NULL104
= array('validate' => 'first', 'fieldList' => array());
Im not sure you it would be structured, you can of course just try and add
multiple models to the field list.
On Oct 6, 6:03 pm, "Dave Maharaj :: WidePixels.com"
wrote:
> I read the sav
I read the saveAll in the bookand it says define $fieldList but looking at
the saveAll it
fieldList: Equivalent to the $fieldList parameter in Model::save()
saveAll(array $data = null, array $options = array())
Where do youput the $fieldlist array and how is it structured? Per model
User => ar
In most of my case I am saving data for two or more related models but not
sure if I am going about it the right way.
I am using save() for each related model because I want to specify what
fields can have data saved to them (using AJAX so I know about Security
component and it wont work)
Examp
erscope-to-
auth
On Oct 6, 9:57 am, Simon wrote:
> that would be very nice the solution you came up with its good at
> least it works On Oct 6, 9:44 am, "Dave Maharaj :: WidePixels.com"
>
>
>
> wrote:
> > A crap solution I tried that works is in the login function.
My controller is getting out of control
I have 3 different registration functions which all send emails
such as:
if ($this->User->save($this->data, true,
array_intersect(array_keys($this->User->schema()), $white))) {
$this->Email->smtpOptions = array(my info here);
7;action' => 'pending_email_confirmation'));
}
Would be nice to not even log them in and re-direct but I cant find anything
related.
Dave
-Original Message-
From: Simon [mailto:simon_d...@hotmail.com]
Sent: October-06-09 2:06 PM
To: CakePHP
Subject: Re: Users Scope
i
How can you redirct to a page explaining why a user can not login?
$this->Auth->userScope = array('User.confirmed' => '1');
So if its not been confirmed redirect to a page explainng why...please
confirm your email what not.
Dave
--~--~-~--~~~---~--~~
You rece
ed addresses)
and I am ready to share those modifications, so that someone can use it in
order to improve Email component.
With best regards,
Ivars
On Oct 6, 7:26 am, "Dr. Loboto" wrote:
> $this->Email->bcc must be an array.
>
> On Oct 6, 10:10 am, "Dave Mahara
I get this error when sending an email with bcc
Warning (2) : Invalid argument supplied for foreach()
[CORE/cake/libs/controller/components/email.php, line 714]
$this->Email->delivery = 'smtp';
$this->Email->to = $this->data['User']['email'];
$this->Email->bcc = 'd...@widepixels.com';
The ema
You can use
$this->data['User']['confirm_code'] = string::uuid();
"The uuid is a 128bit string in the format of
485fc381-e790-47a3-9794-1337c0a8fe68"
http://book.cakephp.org/view/573/uuid
Dave
-Original Message-
From: Jas [mailto:mciver.ja...@gmail.com]
Sent: October-05-09 11:15 PM
Is there a way to get a list of fields in a form when a page is loaded?
I would like to (try) to build my own custom component for AJAX forms to
check form fields. I tried pulling code from the security component with no
luck.
Any ideas?
Thanks
Dave
--~--~-~--~~~---
I have a rather large function during user registration.
Depending on the role they are registering as i create records for that
specific role populating their profile and additional required tables with
id's for the new user.
The 2 roles require different tables so i currently have an
if (ro
the empty string, Cake outputs an empty option.
On Sun, Oct 4, 2009 at 8:13 AM, Dave Maharaj :: WidePixels.com
wrote:
>
> I had a same / similar question for input selects which is related to
this.
>
> I have my echo $form->input('State'); which is populated by a find
> lis
I had a same / similar question for input selects which is related to this.
I have my echo $form->input('State'); which is populated by a find list...so
I have all my States. How can I add so first option to be "Select your
State" with no value? Right now Alabama shows up first and if a user does
I have to install cake on a shared hosting server.
The user has 4 domains so the server looks like
/public_html
/css
/js
/images
..all files for the hosting master domain1
/domain2
/all site files for domain12.com
/domain3
/all site files for domain3.com
n Sat, Oct 3, 2009 at 10:08 PM, Dave Maharaj :: WidePixels.com
wrote:
Not quite sure how this works but how does one steal a session?
I have my session info stored in the database... if i added ip to the
session so it also checks that the session ip matches the user ip would that
increase the sessio
Not quite sure how this works but how does one steal a session?
I have my session info stored in the database... if i added ip to the
session so it also checks that the session ip matches the user ip would that
increase the session sucurity? What a safe guards / good practsise to secure
session d
PM, Dave Maharaj :: WidePixels.com
wrote:
>
> No matter what i try I still cant sort an array.
>
> $merged = array_merge ($new_skills, $selected);
> debug($merged);
> Array
> (
> [0] => Tree
> [1] => Zoo
> [2] => Hello
> [3] => Test
>
zed user, right?
>
> If your security model needs to include "has been posted from exactly
> my form on my page" then ajax should not be used for those requests.
> IMHO.
>
> /Martin
>
> On Oct 1, 11:05 pm, "Dave Maharaj :: WidePixels.com"
>
> wrote:
No matter what i try I still cant sort an array.
$merged = array_merge ($new_skills, $selected);
debug($merged);
Array
(
[0] => Tree
[1] => Zoo
[2] => Hello
[3] => Test
[4] => Cool
[5] => 3 Doors Down
[6] => Yellow
)
$sorted = natcasesort($merged);
he documentation ...
>
> On Thu, Oct 1, 2009 at 8:50 PM, Dave Maharaj :: WidePixels.com <
>
>
>
> d...@widepixels.com> wrote:
> > Is there a way to determine / ensure that any requested action
> > comes from the server?
>
> > I mean more towards the aspec
Is there a way to determine / ensure that any requested action comes from
the server?
I mean more towards the aspect of forms. That when a form is submitted the
request is coming from the site and not someone who made a form and trying
to submit it to your site.
Just curious
Thanks,
Dave
My bad
The array is more complex than I originally posted.
So I need Program and Skill sorted alphabetically
Array
(
[Program] => Array
(
[0] => After School Studies
[1] => Gym
[2] => Creative Writing
)
[Skill] => Array
Anyone know why a sort returns 1?
Model function:
$merged = array_merge ($new_skills, $selected);
//debug($merged);
$sorted = sort($merged);
//debug($sorted);
$merged produces
Array
(
[0] => Cohghol
[1] => Shit
[2] => Thfghfdgh
[3] => Zoo
[4] => Alfred
[
I have this:
User Model
$q = $this->find('first', array(
'conditions' => array(
'User.id' => $auth_id),
//'fields' => array('User.id'),
'contain' => array(
'Addition' => array(
'conditions' => array('Addition.id' => $auth_id),
'fields' => array(
Sorry to post...i figured it out.
Dave
-Original Message-
From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com]
Sent: September-30-09 3:23 PM
To: cake-php@googlegroups.com
Subject: Help with an array()
I have a merged array which produces
$new = array_merge
I have a merged array which produces
$new = array_merge($newSelections[$model_table],$additional_options);
Array
(
[0] => Array
(
[id] => 9
[name] => Confident
[UsersOption] => Array
(
[id] => 222
'last' => true)
),
'confirm' => array(
'confirm-notempty' => array(
'rule' => array('notempty'),
Ok cool will give it a try.
Dave
-Original Message-
From: Miles J [mailto:mileswjohn...@gmail.com]
Sent: September-29-09 3:40 PM
To: CakePHP
Subject: Re: Change Password
I dont think hash() adds the security salt, you must use Auth->password ().
--~--~-~--~~
I am trying to set up a change password section.
password field and confirm field only.
model:
validation rules:
'password' => array(
'pass-notempty' => array(
'rule' => array('notempty'),
'required' => true,
'allowEmpty' => false,
'message' => 'Password cannot be empty.',
Right on thanks!
Dave
-Original Message-
From: Marcelo Andrade [mailto:mfandr...@gmail.com]
Sent: September-29-09 12:18 PM
To: cake-php@googlegroups.com
Subject: Re: Display Error
On Tue, Sep 29, 2009 at 12:34 AM, Dave Maharaj :: WidePixels.com
wrote:
> I need to place an error
I need to place an error in a specific spot so I used the
error($model . $field); ?>
But the error shows up in 2 places now. Where I have my error code and
beside the field. How can I remove it from the field so it only displays in
the spot i want?
Thanks,
Dave
--~--~-~--~~--
I upload an image using a component which produces this array
[Image] => Array
(
[image] => Array
(
[name] => blue_self_shot_m057.jpg
[type] => image/jpeg
[tmp_name] => /var/tmp/phpZ0VP1f
I got it. Was using the State model in error as I am validating state_id in
the Experience
-Original Message-
From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com]
Sent: September-28-09 6:32 PM
To: cake-php@googlegroups.com
Subject: Validate belongsTo
I am trying to
I am trying to validate Country and State models from there related models
$belongsTo
In the form users select Country and State which is populated from the db.
So each has an id...
Now I want to make sure someone is not messing with the values with Firebug.
So in my Experience controller t
28, 2009 at 12:24 PM, Dave Maharaj :: WidePixels.com
wrote:
>
> Yeah I set up a reports.php like they did in the Cookbook but even
> when I try to run it from the control panel I keep getting '/bin/sh:
> 15: command not found'
It looks like you're trying to feed the
m, brian wrote:
> On Mon, Sep 28, 2009 at 10:02 AM, Dave Maharaj :: WidePixels.com
>
> wrote:
>
> > Ok, thanks,
>
> > I want the cron to run by its self at a specific time. SoI do not
> > have to do it myself daily. Can this be done in your approach? New to
cron s
shellname >>/dev/ null
2>&1
The last bit (dev/null and that) makes the shell totally silent which is
needed unless you want the cron to terminate unexpectedly. But when testing
yourself you should leave that out so you can see the output.
On Sep 27, 6:27 pm, "Dave Maharaj
Thanks guys,
Looks like I it was just a missing an at the end.
Like I said... I'm dumb :P
Thanks for you time once again.
Dave
-Original Message-
From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com]
Sent: September-27-09 8:04 PM
To: cake-php@googlegroups.com
Su
ray
(
)
[Favorite] => Array
(
)
-Original Message-
From: Gonzalo Servat [mailto:gser...@gmail.com]
Sent: September-27-09 7:41 PM
To: cake-php@googlegroups.com
Subject: Re: Im dumb...help!
On Mon, Sep 28, 2009 at 8:05 AM, Dave Maharaj :: WidePixels.com
o:gser...@gmail.com]
Sent: September-27-09 7:41 PM
To: cake-php@googlegroups.com
Subject: Re: Im dumb...help!
On Mon, Sep 28, 2009 at 8:05 AM, Dave Maharaj :: WidePixels.com
wrote:
>
> When I test it out I know there is no data for either.
>
> So in the view:
>
> Dummy title If
.
Thanks
Dave
-Original Message-
From: Miles J [mailto:mileswjohn...@gmail.com]
Sent: September-27-09 7:27 PM
To: CakePHP
Subject: Re: Im dumb...help!
Thats correct, so what exactly is the problem?
If not try:
On Sep 27, 2:51 pm, "Dave Maharaj :: WidePixels.com"
wrote:
&
I need to run an if on 2 conditions but I cant get it to work
do something here if either is not empty
&& would check if both are empty but I need if either is not empty.
How can I do this or what have I got done wrong here?
thanks,
Dave
--~--~-~--~~~---~--~-
Trying to set up an action to run at a specific time. Found a few sites
saying replace
require CORE_PATH.'cake'.DS.'bootstrap.php';
in index.php but no longer appears to be there.
Any good places to look where to set this up?
Thanks
Dave
--~--~-~--~~~---~--~--
gt;modifyRequiredFields(array('i_also_need_this', 'and_this'));
... or ...
if it's a "standard" find()
$this->ModelName->find('all', array('fields' => $this->ModelName-
>myFields));
On Sep 26, 3:14 pm, "Dave Maharaj
Just wondering if anyone has an opinion or fact about this.
When pulling model data, keep it simple so Users controller getting straight
info from Users database.
Users table has 15 fields.
You may only need 5 fields data and in another case you may need all 15
fields.
Is it best to specify
1 - 100 of 571 matches
Mail list logo