If this is true good luck for him and for everyone in this great
community.
everyday I discover that cake is something that should be delivered as
a curriculum in the academic institutes like cisco and c#
On Oct 15, 1:18 am, Adam wrote:
> "[gwoo] resigned from the Cake Software Foundation and ca
Dear Dave,
The logoutredirect deletes the session key of the auth component not
the other session keys...
Let the logout() method delete all the session keys that you create
since you have logged in
have a nice baking day
On Oct 15, 7:58 am, "Dave Maharaj :: WidePixels.com"
wrote:
> I have a lo
Dear Kyte
sorry for the delay, I forgot!
Solution
just add this code in the beginning of the app\config\routes.php file
$singleton_router =& Router::getInstance();
if(!in_array('q',$singleton_router->named['default']))
$singleton_router->named['default'][]='q';
the problem is that
Dear Lan
Always think like this on the client side
HTML/layout in for structuring
CSS is for styling/representing
Javascript is for behaving
cake comes with a default layout for html/php pages it is called
default.ctp and it is located in the cakefolder\cake\libs\view\layouts
the first thing you
remember that this issue should be on demand not every period of time.
it is better to do it usin javascript/ajax
John Andersen said the truth... the last activity time... but the 5
minutes is something too long... heheh
I do like the way
On Oct 15, 12:22 am, DigitalDude wrote:
> Hey,
>
> that
Dear Dave,
Let me tell you that I am convinced that isAjax() is something fake
and falsified (it is just a client side input) and it is not a
standard yet, I am talking about the 'X-Requested-With' header.
I would create a custom controller for the ajax requests or a custm
action in a certain co
you have two choices
either you hack your customized/personalized \app\controllers
\components\auth.php file (not recommened if you are not expert and if
you do not need it as in this case)
ORR
you have to put it in a controller callback so a check done one time
if (!array_key_exists('reque
I think I understand your question.
yes by default it seems that CRUD/FIND are row level.
but for custom pagination query or for one to many relationships
(threads vs posts) it is not the same
I liked $this->id=;
In case of a single item/SSTabs, I would use the containable behavior.
In cas
Dear jonlyles
In general and if you stick to MVC then
M is required for each T (table)
C is for ZERO or more M
V is for 1 or more A (action)
A requires ZERO or 1 view
a for particular cases, I need more information
--~--~-~--~~~---~--~~
You received this messa
as for particular cases, I need more information
On Oct 18, 6:13 pm, robustsolution wrote:
> Dear jonlyles
>
> In general and if you stick to MVC then
>
> M is required for each T (table)
>
> C is for ZERO or more M
>
> V is for 1 or more A (action)
>
> A
Dear Céryl,
I use this whenever someone registers (to create a new account) or
uses a contact us form for feedbacks
App::import('Core', array('Validation'));
if(Validation::email($email, true)) {
/*
it verifies $email synrax
it verifies availability of the host (after the @)
*/
}
have a nice baki
Dear @Jayarjo
If I understand very well your Question, I think you should read a
little bit about requestAction with 'return' extra parameter
On Oct 22, 2:13 pm, jayarjo wrote:
> I'm getting a huge View and I'm thinking now of splitting it into
> separate pieces and include them into the main Vi
Dear @jayarjo
just read this
http://cakedc.com/eng/developer/mark_story/2009/02/27/benchmarking-requestaction
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake
Dear @Amit,
use this snippet in your app controller beforefilter callback
if (!array_key_exists('requested', $this->params)) {
//anything you put here will be called just one time
}
have a nice baking day
--~--~-~--~~~---~--~~
You received this message because
good luck for them, they were robust.
as for the great CakePHP framework, I want to see PHP4 in the hell as
soon as possible.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, se
Dear @Zahidur,
to allow any kind of requestAction from within your AppController do
this in the beforeFilter() callback
if (array_key_exists('requested',$this->params)) {
$this->Auth->allow($this->params['action']);
}
this is a quick solution for now. and it works for me with no error.
the question why do you want to paginate comments while you are
paginating posts?
in general when you paginate the main model (Post), you just include
summary fields from the associated models example
-last commented by commenter name
-last comment title... not body... (text)
-last commented in (d
Dear will,
it seems you are validating from the controller
http://book.cakephp.org/view/410/Validating-Data-from-the-Controller
On Oct 29, 9:08 pm, Will Poillion wrote:
> Simple question:
>
> I'm attempting to save a model, and the data to be saved is not
> passing the validation rules. How do
Dear appel268576,
It seems your edit form does not include the id of each child record,
that is why when you submit, new records are creating as if you are in
create mode!!!
have a nice baking day
--~--~-~--~~~---~--~~
You received this message because you are sub
this depends on how the other php site (the server site) is prepared
to receive credentials...
in general it is a bad practice to pass credentials through URL for
many security reasons...
On Nov 2, 2:22 am, badz lee wrote:
> Hi CakeTeam,
>
> Need your guys advice how to encapsulate link or hide
Prof.No Time
try to take a coffee cup and get relaxed, this is my current solution/
tips/tricks for the moment
1)put this in your AppController class
final protected function _logout() {
if (!empty($this->Cookie)) {
//this ensures if you were using the Cookie component al
I have a linux based hosting account on fasthosts.co.uk and PHP is
working as it should be.
even though I am using it right now for testing from time to time and
it is fine.
I think the things we should ask about are:
-is htaccess enabled and is Apache allowing mod rewrite rule?
-since most of us
I meant cakePHP is working as it should be
On Nov 2, 2:56 pm, robustsolution wrote:
> I have a linux based hosting account on fasthosts.co.uk and PHP is
> working as it should be.
> even though I am using it right now for testing from time to time and
> it is fine.
>
> I t
nice approach... euromark.
On Nov 1, 9:23 am, "euromark (munich)"
wrote:
> way to complicated
>
> dont sanitize it
> and use h() for output (text, varchar)
>
> that is way more handy than any other approach
>
> On 1 Nov., 06:44, Kyle Decot wrote:
>
> > Try echo $form->input("description",ar
you dont need to create a controller class for the settings table
just create a model for the settings table
In case user is not created with its settings (in the same add form),
do the following
in the User model put this
function afterSave($created) {
if($created)
{
$this->Setting->create();
I started (today) exploring this 1.3 piece.
for the first while I like it
but I think I will ...fall in love with this new sweet cake
thanks mark for your support/work and for these great
newss
--~--~-~--~~~---~--~~
You received this message becau
m really sorry for the delay but I really misunderstood the question
I don't know if you mean this
http://book.cakephp.org/view/431/disableCache
On Nov 4, 3:40 pm, "Prof. No Time"
wrote:
> Thanks very very much RobustSolution, I have applied your logic. Its
> ok th
request handler deals with reading request header and setting response
header
as for manipulation of the data as I know the cake 'Xml' library can
do it for xml data... example for parsing xml data as array
App::import('Xml');
$xml_instance =& new Xml();
if ($xml_instance->load($xml_data)) {
$xm
you can work on the layout variable $scripts_for_layout it contains
the css files and the js files
On Nov 8, 5:40 pm, emmexx wrote:
> I use many javascript files in one application.
> Some file is "linked" in the layout view, other are linked in a model
> view.
> Some of those files depend on th
u may use the PHP function key() that returns the index element of the
current array position.
On Nov 8, 5:26 pm, "Dave" wrote:
> Is there a simple way to get the model name from something like this?
>
> This is the data that's sent to cake.
>
> data[Contact][email] t...@something.com
> data[Acc
javascript? alert? after Auth
m sorry m not a fan of this kind of debugging issues
m not a fan of classic javascript validation... alert...etc
On Nov 8, 8:47 pm, Marcelo Andrade wrote:
> Hi there,
>
> Maybe it's a newbie question, but what's the proper way to
> show a javascript alert after
Dear Ahmed, how are you?
It is very very simple, you dont need to change anything in the Auth
component, anything in the login form
you just need to put this in the beforeFilter() callback of the users
controller
if ($this->params['action']=='login' && !array_key_exists
('requeste
you may sanitize somtimes, but you should always validate inputs
(forms... urls http requests)
--
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email
Hi teknoid,
"DO NOT HACK THE CORE AT ANY RATE, AND THIS IS FOR FORWARD
COMPATIBILITY / MIGRATION PURPOSES, FOR EXAMPLE : AVOID ADDING AN
ADDITIONAL CALLBACK BECAUSE YOU ALMOST ALWAYS DO NOT NEED TO CREATE IT"
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their C
the idea about autocomplete is for listing values with or without
relevance not with or without ids.
otherwise a hack should be done.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscri
hi HK,
Aren't you the cache helper in the controller? because AFAIK it should
be used also.
caching view is something server-side (done on the server), it caches
the whole (browser request)'s page answer (the html source code)
caching images is another thing, it is something done on the client
si
I meant why arent you using the cache helper...etc
On Dec 18, 8:58 am, robustsolution wrote:
> hi HK,
> Aren't you the cache helper in the controller? because AFAIK it should
> be used also.
>
> caching view is something server-side (done on the server), it caches
> the wh
AFAIK,
plugin could be used
-1-to be a ~~~separate application : example the blog plugin, the auth
plugin, the forum plugin, etc...
-2-to be called from anywhere by using a requestAction: example
captcha plugin is used to be called via requestAction to import the
"prove that you are human" image
of course you are talking about two-way encryption not hashing (one
way).
by the way what do you mean by the database owner?
either the guy have a full access to the database or a custom access.
if you are the one who has full access, give him a mysql account with
custom access to all tables exc
m sorry, captcha plugin is also considered as a very small separate
application plugin, I gave a wrong example.
but you still have the option number 2 but you need to specify the
plugin key/prefix in the url array/string
On Dec 18, 1:54 pm, robustsolution wrote:
> AFAIK,
>
> plugin
in you app_controller.php, put this
public function beforeRender() {
if (!array_key_exists('requested', $this->params)) {
$user = $this->Session->read($this->Auth->sessionKey);
$this->set(compact('user'));
}
}
and in the layout put this
if (!empty($
you ask a great question
I forget about putting in database because it should be treated as
permanent storage not temporary/volatile storage
now about file caching.
either you use session or you create your own cache engine.
if the arrays are large I prefer create my own cache engine but
instead o
it will be only in your and my dream
happy new year
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to ca
I think the smart guy teknoid has a full article on this
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email
the order I use is
1)prototype
2)scriptaculous
3)jquery
then in the first line of the body section I use
$j = jQuery.noConflict();
and It works...
so for non jQuery plugins I use either the $j keyword or the jQuery
keyword
for jQuery plugins you may use the the $ keyword as it is encasulated
insi
AFAIK,
In general we have three statuses for every account
created but not active (0)
activated (1)
banned (-1)
It is better to stick to one table (users), so this table have an
indexed integer field called status.
As for "Active", ''Banned", etc...
It is just a convention and 9X% of the queries
in your previous code, you are not instantiating the banana, you are
only looking for the banana record with the specific id.
As for the Banana Model Class, you can define custom methods.
You can do hat ever you want but,
If you want to know how do I think?
I do not put a method in the model un
1)I always encourage developers to code globally the assets in
cakePHP, so instead of loading 6-non gzipped javascript files, you
load one gzipped javascript file (dont bother yourself with
minification).
2)If you are using the Auth components, be aware to not load the User
model when the user is s
thanks for sharing us your work.
It was a very good start.
some quick notes:
1)after signup user should receive an activation link to activate his
account not to activate the account by default. in this case use
should autologin
2)user should be able to login using the password with (either his
use
hould be
> used. ;)
>
> There is no single "right" or "wrong" approach. If it works, it
> should help *at least* one other person! :)
>
> Good job on your first plugin attempt, Azril Nazli!
>
> On Jan 13, 8:05 am, robustsolution wrote:
>
> > thanks fo
Solution is not very simple like 5 min minimal setup, and is not
really complex as ACL is!
5 min is very weak because it is hard-coded (bad coding)
ACL is an overkill as you know, especially if it is not for a record-
level-based permission system
Check out the new CakePHP Questions site http://cak
just trust cake... because it deserves
On Jan 17, 7:38 am, keymaster wrote:
> So far, the short list of cake's absolutely largest known sites, is:
>
> addons.mozilla.com
> ==> ranked 308 worldwide by
> alexa:http://www.alexa.com/siteinfo/mozilla.org#trafficstats
> (rumored to be changing to a py
It takes very few minutes to upgrade from 1.3-alfa to 1.3-beta.
On Jan 17, 3:15 pm, red wrote:
> As always, thank you and keep up good work!
>
> On 17 Sty, 05:25, mark_story wrote:
>
> > The CakePHP development team is happy to announce the release the
> > CakePHP 1.3-beta. We've been hard at wo
AFAIK, triggers in MySQL do not behave like a bomb(timer), I may be
wrong, but this is what I know so far!
As for the solution of your problem, I think every time a new user
registers, do a simple query to delete the old registered users that
are not activated yet and where there registration date
Some web hosting companies do not allow the use of htaccess on shared
servers, and sometimes they allow you to use it on linux machines not
windows!
I think Marcelo has the right answer for this kind of situation
Check out the new CakePHP Questions site http://cakeqs.org and help others with
thei
55 matches
Mail list logo