Hi
I have created a cron job which is send emails.
On email template I use route to create correct links.
When I send email from "normal" environment all links created correct,
but when I'm trying to send it by cron I have get a links without
domain, it looks like (/user/login I wanted domain.com
core.XXX are ussualy php dump crash files
i would check your php error logs
On Tue, Jun 29, 2010 at 7:13 PM, mofahead wrote:
> Cake appears to be generating alot of very large files (~50MB each)in
> the app/webroot/ directory. They look like this:
>
> core.5356
> core.11367
> ...
>
> Why is thi
Hi all,
I'm trying to create a form - I have a Users model with some simple
validation. I'm creating a form with:
http://bin.cakephp.org/view/2134760139
The output from this on the page is:
http://bin.cakephp.org/view/220211324
Hmm, that's not right. So I turn up debug:
http://bin.cakephp.or
Oh, this soultion seems to be fine, but there is some additional
problem. In fact my array is something like the following:
Array
(
[0] => Array
(
[0] => Array
(
[Category] => Array
(
[i
I set destroy Cookie and Session inside of logout function
but still something remember which page user log off and brings user
back to the page when user log in.
function logout(){
$this->Cookie->destroy();
$this->Session->destroy();
$this->redirect($this->Auth->logout());
}
On Tue,
It should be placed within your bootstrap.php file, unless it could be
a helper, component, etc.
On Jun 29, 6:15 am, DragonFlyEye wrote:
> It depends a lot on what the function is and what you plan to do with
> it. However, as a general explanation:
>
> Since all Controllers extend the app_contro
Or you can just access the session directly, its still there.
$_SESSION['Auth']['User'];
On Jun 29, 10:47 am, Roland Pish wrote:
> Thanks for your replies.
> I'm trying what Renato suggested, but $session doesn't contain the
> session variable I declared in another controller (with
> $this->Ses
Because I don't want to use it as a parameter of the function. I just
want the function to deal with it as any variable set from the
controller.
On Jun 29, 9:04 am, Jeremy Burns | Class Outfit
wrote:
> Why are you creating the variable again, and why is it global?
>
> Jeremy Burns
> Class Outfit
Cake appears to be generating alot of very large files (~50MB each)in
the app/webroot/ directory. They look like this:
core.5356
core.11367
...
Why is this happening and how can I stop it?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related ques
I have Auth login system, and It is working fine - user don't have
problem login/logout
However, I want to change one thing. I don't want to session to
remember where user log off.
When user login as soon as logout then a user is brought back to where
user logoff
EX)
When user log off let's sa
well, that was fast...
http://cakephp.lighthouseapp.com/projects/42648/tickets/856-htmlhelpergetcrumbs-semantically-correct-output
well, its still a list of items separated by something like > oder >>
and it might be easier to style it with css if it is not a plain
string like "x > y > z"
but a li
I would create a subclass of the Auth component that would override the
login function and use it instead of the 'basic' auth component.
On Tue, Jun 29, 2010 at 12:40 PM, Shaz wrote:
> Make a new action in the controller, call it "customLogin" or whatever
> you want, and in there call the functi
view
h4>
label('category_id',
__('Category', true).':*');?>
input('category_id',
array('label' => false, 'options' => $categories, 'empty' => '--' ));?
>
My bad forgot the link
http://book.cakephp.org/view/662/combine
On Jun 28, 7:23 pm, saidbakr wrote:
> Hi,
> From documentation, find may output array like the following:
>
> Array
> (
> [0] => Array
> (
> [ModelName] => Array
> (
> [
Try using cakes Set class... this page should help you out
On Jun 28, 7:23 pm, saidbakr wrote:
> Hi,
> From documentation, find may output array like the following:
>
> Array
> (
> [0] => Array
> (
> [ModelName] => Array
> (
> [id] => 83
Wow thanks! I'll read, it seems to be what I was looking for.
Thanks again!
Hugo
2010/6/29 LunarDraco
> You could build a join set which will force the items to the same
> array level.
> http://book.cakephp.org/view/872/Joining-tables
>
> On Jun 28, 9:13 am, Hugo M wrote:
> > Well best the so
You could build a join set which will force the items to the same
array level.
http://book.cakephp.org/view/872/Joining-tables
On Jun 28, 9:13 am, Hugo M wrote:
> Well best the solution I found will be migrating from MySQL to Postgres,
> because Postgres can have both foreign key and full text in
Thanks for your replies.
I'm trying what Renato suggested, but $session doesn't contain the
session variable I declared in another controller (with $this->Session-
>write...).
Another question: what should $base must have?
Thanks!
On 29 jun, 11:30, Renato de Freitas Freire wrote:
> You can insta
You can add $this->Auth->allowedActions = array('action'); to the
app_controller.php for all controllers rather than having to set it
for every single controller. Can't think of anything else other than
that.
On Jun 24, 2:52 pm, Melanie Sommer
wrote:
> Hello,
>
> I am using AuthComponent with au
Make a new action in the controller, call it "customLogin" or whatever
you want, and in there call the function in the model (below), which
would return true/false, and if(true){ do this } else { do this }
For the model:
Make a new function to be called in the controller, use $this-
>field(Tablena
As Shaz points out, there are a few basic and very simple options.
What are you trying to achieve?
1. If the file is called from the browser and has a php extention, you
can use raw html and php snippets.
This is raw html
welcome " . $user;
?>
This is raw html again
2. if the file has
> It's actually pretty cheap now to get your own VPS, and set it up
> exactly how you want to.
I second that suggestion, after switching to VPSs I'd never switch back.
In the UK I like www.bytemark.co.uk
In the eu www.linode.com have US and uk data centres
Also in the US is www.slicehost.com
I h
Try find('list', array(contain => array( 'Model1', 'Model2' )));
On Jun 29, 1:23 am, saidbakr wrote:
> Hi,
> From documentation, find may output array like the following:
>
> Array
> (
> [0] => Array
> (
> [ModelName] => Array
> (
> [id]
You can instance Session object in app_model:
class AppModel extends Model {
function __construct($id=false, $table=null, $ds=null)
{
//needs set correct $base by way You like
$base = null;
$session = new CakeSession($base);
parent::__construct($id, $table,
... adding to the above, what's wrong with a little bit of CakePHP
branding?
Most clients I've had don't particularly care about the code as long
as it works, let alone know what a framework is
On Jun 29, 1:59 pm, AD7six wrote:
> On Jun 29, 5:01 am, Vangel wrote:
>
> > I am quite sick of cak
Hi All,
did someone know what great Finance or Accounting plugins for Cakephp
1.2?
Thanks for any advice guys :)
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 Gro
Can you be a bit more detailed on what you are trying to achieve?
Outputting html in php is a simply matter of using echo ' ';
On Jun 29, 7:25 am, sunny wrote:
> Can anyone tell me how to add an html file to php script.
Check out the new CakePHP Questions site http://cakeqs.org and help ot
There's been a lot of discussion about this - use the search box on
the top right.
I personally tend pass the session details as an argument through the
controller:
--- Model ---
function whatEver ($session) {
manipulate $session['User'];
return something;
}
--- Controller ---
function v
It's actually pretty cheap now to get your own VPS, and set it up
exactly how you want to.
I can recommend both HostingZoom + 1&1, faultless service over a
number of years for an excellent price.
On Jun 29, 5:59 pm, nurvzy wrote:
> I'm a fan ofhttp://www.downtownhost.com.
>
> On Jun 28, 1:27 am,
I'm a fan of http://www.downtownhost.com.
On Jun 28, 1:27 am, saavedrajj wrote:
> I'm tired about Godaddy.com I want to change all my projects to a full
> compatible CakePHP hosting server.
>
> Please recommend me one without problems with subdomains, installing
> another php aplication inside ca
Hi!
I would like to know if I can read a session variable in the model, I
tried with: $this->Session->read... and with Session::read... but none
of them work.
Thanks in advance.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You
Thanks for the replies. Erik's solution worked (using
ClassRegistry). For some reason, loadModel threw an error.
I may rewrite it to use a behaviour, but at least it's working for
now!
Thanks again,
Sharon
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their C
..but the question was a model in a model, not in a controller.
Ah, that's my bad. Sorry.
On Jun 29, 9:40 am, Erik Starck wrote:
> ...but the question was a model in a model, not in a controller.
>
> I'm using this in my model class:
>
> $Category = ClassRegistry::init("Category");
> $cat
...but the question was a model in a model, not in a controller.
I'm using this in my model class:
$Category = ClassRegistry::init("Category");
$category = $Category->findById($underThisCategoryId);
Don't know if there's a better way. loadModel would be nicer I suppose.
BR Erik
On Tue, J
You could make use of the $uses variable.
Say you need to access the unrelated table Bar from controller Foo,
you would add a uses variable for something like:
$uses = array('Foo', 'Bar');
On Jun 28, 5:36 pm, WhyNotSmile wrote:
> I have a model which is kind of generic - it's a list of column
They were useful for me: they gave me a better understanding of
CakePHP, as it's my first time using it.
Thank you Mark :) .
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 t
On Tue, Jun 29, 2010 at 6:27 AM, gaurav.v.sharma
wrote:
> Is there any way of fetching only those records of a model which have
> 'status = 1' in cakephp v1.3 ?
>
> I have created a field named 'status' in every table of my web
> application.
>
> I have a model named 'Message'. What I want is that
On Tue, Jun 29, 2010 at 7:47 AM, Andrei Mita wrote:
> Hello,
>
> Here is the situation: I have 1000 users competing in an online game. This
> game has standings. Is it possible to start the pagination at a given page?
Use the 'page' key in the $paginate array:
'page' => whatever
Check out the n
On Mon, Jun 28, 2010 at 8:18 PM, Dave Maharaj wrote:
> The migration guide says 1.3
>
>
>
> Router::connect('/([0-9]+)-p-(.*)/', array('controller' => 'products',
> 'action' => 'show'));
>
> Is no longer good.
>
>
>
> My 1.2.x app I have
>
>
>
> Router::connect('/:user_slug/',array('controller' =
hi
I tried copying cake/libs/error.php to my app/controllers and then
adding $helpers = array('Javascript') but it didn't work, although
adding it (temporarily. natch!) to the lib file does work.
What is the thing with the inheritance that I am missing here?
cheers
Luke
Check out the new CakeP
It depends a lot on what the function is and what you plan to do with
it. However, as a general explanation:
Since all Controllers extend the app_controller in the /cake folder,
you can create your own app_controller and put it in the /app/
controllers folder and add your global function there. Th
The company I work for has a very loosly-organized system of
referencing pages which bears a modest resemblance to a Tree
structure. Their "menu" table contains pairs of "pageid" and
"levelid," with another element "line" to indicate the order in which
they appear. Any pageid could potentially be a
On Jun 29, 5:01 am, Vangel wrote:
> I am quite sick of cake doing tons of branding everywhere. (emails,
> cookies, css etc etc)
> Its starting to look like some other frameworks already.
I'm a bit sick of wingy .. people complaining about something they
obtained for free as if they're owed som
Can anyone please tell me how to declare, define and call global
function in cakephp.
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 po
Sounds like you are not using the proper settings in core.php to set the
cookie name. Look @ the doc comments in the file they should explain how to
do this.
As for the "branding" override all of the templates from the core views,
simple enough, and you can even create your own bake templates to u
Hello tehtreag
Thnks for replying
yes..that good..!
Bye
Dilip Godhani
Software Developer,
Entourage Solutions
e-mail: di...@entouragesolutions.com
dilip.godh...@gmail.com
Web.: www.entouragesolutions.com
m. 9913822582
On Tue, Jun 29, 2010 at 5:54 PM, Teh Treag wrote:
> Dilip,
>
> T
I am quite sick of cake doing tons of branding everywhere. (emails,
cookies, css etc etc)
Its starting to look like some other frameworks already.
I have set cookies etc, but Cake still sets its own CAKEPHP cookie. I
absolutely do not want to give any indication to snoopers and sniffers
about wha
Hi,
I've a problem using cake's security component when my field names are
integer. For example I've several checkboxes named:
data[MyModel][1]
data[MyModel][2]
data[MyModel][3]
When I activate the security component, the validation of the post
data failes. The fields are properly written by the
Can anyone tell me how to add an html file to php script.
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 migration guide says 1.3
Router::connect('/([0-9]+)-p-(.*)/', array('controller' => 'products',
'action' => 'show'));
Is no longer good.
My 1.2.x app I have
Router::connect('/:user_slug/',array('controller' => 'profiles', 'action' =>
'view'),array('user_slug' => '[-_A-Za-z0-9]+',
Dilip,
That's correct. If you do not provide a layout, CakePHP will use the
ones in the cake/libs/views/layouts/email/{html,text}/default.ctp.
Instead of modifying these files provide your own in your app/views/
layouts/email/{html,text}/default.ctp.
-tehtreag
On Jun 29, 7:17 am, Dilip Godhani
Used the book myself on CakePHP 1.3.2 - had no problems.
On Jun 29, 7:10 am, Jeremy Burns | Class Outfit
wrote:
> There are more differences than that, but if you read the migration guide
> (http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3) you'll
> very quickly be able to mo
Hey I find that text came form cake lib
this come from following
cake/libs/view/layouts/
email
--html
-default.ctp
--text
Dilip,
To remove that text from your email messages, edit the layouts in app/
views/layouts/email/html/default.ctp for HTML, and app/views/layouts/
email/text/default.ctp for text messages.
$ find app \( -name \*.ctp -o -name \*.php \) -exec grep -i 'email was
sent' {} /dev/null \;
./views/layout
Hello,
Here is the situation: I have 1000 users competing in an online game. This
game has standings. Is it possible to start the pagination at a given page?
Thanks,
Andrei
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You rece
Hello Frd
Me creating email system ,in this me send mail using email component me
create template in
element
/email
/html/email1.ctp
/text/defualt.ctp
when i send mail this text(This email was sent using cakephp framework )
automaticaly add ,can any one help h
Is there any way of fetching only those records of a model which have
'status = 1' in cakephp v1.3 ?
I have created a field named 'status' in every table of my web
application.
I have a model named 'Message'. What I want is that only those
messages are displayed, included in search results which
hi all,
i am trying to join more than one table using joins but i am
unable to check conditions in that one. anybody tell me what is best to
write joins.
and tell me any one cakerelated query..
SELECT DISTINCT `csd`.`store_id` , `csd`.`date` , `c`.`campaign_id` , `c`.
`supplier_id` ,
Reading the PHP manual at:
http://dk2.php.net/manual/en/filesystem.configuration.php
it can be seen that you must configure your ini file for this, due to
security reasons.
Enjoy,
John
On Jun 29, 8:21 am, ytbryan wrote:
> hi all,
>
> I would like to execute file($path) whereby the $path is a
Make sure that you set the model id (the primary key of the user
record) before you use saveField!
Enjoy,
John
On Jun 28, 10:41 pm, randy wrote:
> I am struggling with some Auth/Acl issues at the moment...specifically
> this.
>
> I have a basic Users/Groups setup, I'd like to NOT keep a record
60 matches
Mail list logo