On Mon, Apr 13, 2009 at 6:52 PM, mattalexx wrote:
>
> class CronShell extends Shell {
> function daily() {
> $this->out(Configure::read('App.encoding'));
> $this->out('Peñasco');
> }
> }
Is your text file saved with the UTF-8 encoding?
Is your command
hi friends ,
I want to use home.ctp for a default page to avoid
adding new parameter in the URL .
In home.ctp i wan to show some values from database . What options do
i have ??
Regards
deepesh gairola
--~--~-~--~~~---~--~~
You received this messag
On Mar 2, 9:37 pm, grigri wrote:
> Every IDE I've tried has been horrendously slow, and I've got
> used to not having auto-completion.
One alternative would be to use something like Zeus:
http://www.zeusedit.com
It is PHP aware, has many features of a typical IDE, but is
fast loading and
I want to create a standard function that gets run once to get the Users
info from another table when a User logs in. I am using findBySlug in most
of the controllers (which is in the User table), but would rather use 1
function to get all the data I need for other parts of the site in 1
function a
I solved.
I put this in one of application controllers... although it can be put
also in app_controller.php
var $dontUseModels = Array(
'method1' => true,
'method2' => true,
...
);
function constructClasses() {
I have come into a situation where I need to find something that will be in
either TableA or TableB. Is there an easy way to do this or do i need to
query TableA if no results query TableB?
thanks,
Dave
--~--~-~--~~~---~--~~
You received this message because you
You can use a method like this one:
http://jqueryfordesigners.com/coda-slider-effect/
hope that helps.
Cheers,
Graham
Gwoo wrote:
> Jquery
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group
As I said, you're making a 2nd Cake request to get the image. If it
was just an ordinary image (or script, css, etc.) it wouldn't be a
problem. Cake has an unreasonably (IMHO) "high" security setting. I
have no idea how/why it would ever be useful. It just seems to break a
lot of things.
On Mon,
For anyone that's interested, I decided to go a completely different
route:
http://www.sitepoint.com/forums/showthread.php?t=608370
On Mar 19, 1:49 pm, Miles J wrote:
> Oops I meant to say "Your not able to pass controller data to the
> behavior". I was thinking something like this.
>
> In the
Well, there is other stuff that happens when a user is deactivated.
They are sent an e-mail for example...
On Mar 23, 9:02 am, "oliver.pra...@googlemail.com"
wrote:
> I dont get why you even have that process of marking them (or how you
> Mark them).
> Just add a function that checks expiration
My MySQL account only has SELECT privileges for that database. It's on
another server; I'm just accessing it. I guess I could import it, add
the primary key, then access it from my server, but that seems so
dirty. Although, the whole database is damned dirty to begin with.
On Apr 10, 7:27 am, bri
Hmm. I was trying to overload both _welcome() and setup() in a task. I
tried it from the original Shell and it worked. I wonder why it wasn't
working from a Task?
Anyway, thanks for your response.
On Apr 12, 7:28 am, mark_story wrote:
> Can't you just overload _welcome() in your shells?
>
> -Ma
Well, I'm no expert, but this line stinks:
$this->set('day', $this->Day->read(null, $id), $this->paginate
('Birthday'));
as you can see in the API[1] and The Book[2], Controller::set()
accepts only two params..
[1]: http://api.cakephp.org/class/controller#method-Controllerset
[2]: http://book.
Thanks a mil,
I set it to medium and I am no longer getting kicked. Dont know why
session timeout has anything to do with it but meh.
Thanks Brian
On Apr 14, 3:16 am, brian wrote:
> I suspect this is due to the same session problems some people have
> been having. You're making a 2nd request f
I am trying to output Spanish characters (in this example, "ñ"):
[CODE]
class CronShell extends Shell {
function daily() {
$this->out(Configure::read('App.encoding'));
$this->out('Peñasco');
}
}
[/CODE]
This is what I get:
[CODE]
Welcome to CakePH
Hi,
I am a very particular situation here. I have a controller which 2
methods do not connect into any database, they are as simple as
displaying a view.
However, I noticed, every time a open these methods, the CakePHP open
a database connection, which is useless, because, as I told, these do
n
Okay, so I'm working on creating a website where one of the things
people can do is add their birthdays, each day of the year is listed,
and peoples birthdays are listed inside of the views for the days as
"related birthdays" with standard bake format. Been trying forever to
figure out what I nee
> Query: SELECT `Aco`.`id`, `Aco`.`parent_id`, `Aco`.`model`,
> `Aco`.`foreign_key`, `Aco`.`alias` FROM `acos` AS `Aco` LEFT JOIN `acos` AS
> `Aco0` ON (`Aco0`.`alias` = 'controllers').
I don't use ACL, so this may be just ignorant me, but that join looks
a little strange ... what
For determining which JS framework a site used:
http://blog.olicio.us/2008/11/08/wtframework-bookmarklet/
https://addons.mozilla.org/en-US/firefox/addon/10500
On Apr 13, 2:29 pm, Gwoo wrote:
> Jquery
--~--~-~--~~~---~--~~
You received this message because you are
On Mar 9, 8:41 pm, "Dave Maharaj :: WidePixels.com"
wrote:
> What has happened is I built the site on my local WAMP server setup, it runs
> perfect.
There are differences between WAMP and LAMP (assuming you're on Linux/
Apache hosting). The one that always gets me is case sensitivity.
Things tha
Just not sure why it happened. I tried the tutorial from the cookbook a few
times to make sure I was doing it right and same thing every time. It works
for me now but only after the fixes from the site I mentioned in the
previous email.
Dave
-Original Message-
From: Gwoo [mailto:gwoo.c
Whats the best and easiest way to do this? Currently the time helper
is in 24 hour format, I want 12. Should I just create my own time
helper in the helpers folder and copy and paste the original code? Or
is there another way?
Also when dealing with timezones, I pass the -6, +4, 0, etc GMT values
I've been hosting my CakePHP apps with Surpass Hosting (http://
www.surpasshosting.com) and ACL works fine. Their developer plan is
pretty nice...latest version of PHP/MySQL/PostgreSQL/SQLite and
version control (SVN, GIT, CVS):
http://www.surpasshosting.com/surpass-developer-resources.php
On Ma
Hi ALL,
i have the following problem:
the session data is not written completely. I am redirect to login
page every time the Session->check().
print_r($this->Session->read()); -> Outside JAKE:
Array ( [Config] => Array ( [userAgent] =>
a8b20f090b3faef97fe11ddaa7993bc6 [time] => 1239650982 [
hello
I have been trying out a way to send an email to the new user with a
token on a submitting the user registration form and finally saving
the user into the database when the token has been exicuted.
This is excatly like the bakery.cakephp.org user registration system.
So far the closest tut
Are you saying the bug should be reopend? Looks like it was marked as
fixed.
--~--~-~--~~~---~--~~
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 unsubscri
Looks good.
All I can suggest is to triple check you've named your files correctly
(case matters) and put them in the correct place.
On Apr 13, 7:21 pm, Beedge wrote:
> Hi all.
> I recently decided that I got to get trained up in using a php
> framework as up till now Ive been handcoding everyt
Jquery
--~--~-~--~~~---~--~~
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 from this group, send email to
cake-php+unsubscr...@googlegroups.c
hi all
im happy to be here
i have a questin
how did you create the sliding effect on the homepage?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@goo
Although I have not made use of scaffolding you are still required to
use a controller
http://book.cakephp.org/view/105/Scaffolding
On Apr 13, 1:21 pm, Beedge wrote:
> Hi all.
> I recently decided that I got to get trained up in using a php
> framework as up till now Ive been handcoding everyth
Thank you. That is a good solution to replace newline with BR. So I
guess the best solution is to use PHP function instead of searching
for some built-in functions.
On Apr 13, 12:30 am, Miles J wrote:
> Cant you just use nl2br() ?
--~--~-~--~~~---~--~~
You receive
Thank you Sam,
I tried using PHP's $_POST and got the same negative result. No data.
I asked authorize.net live tech support and they told me it could be a
timeout problem. Since I was using my PC for the test, I moved to the
server and tries again. This time I got a web page, as if
authorize.ne
On Mon, Apr 13, 2009 at 2:06 PM, Joseph Roberts
wrote:
>
> Greetings fellow bakers,
>
> I need help with a development project where I work at a rescue
> mission. I am creating a volunteer management system that involves
> many models such as: groups, jobs, volunteers, skeleton_jobs and
> schedul
Perfect, that worked a treat thank you!
On Apr 13, 5:41 pm, grigri wrote:
> This should do the trick:
>
> Set::combine($data, '{n}.title', '{n}.no_tags');
>
> hth
> grigri
>
> On Apr 13, 3:30 pm, "ross.hagg...@googlemail.com"
>
> wrote:
> > Hi i have the following array
>
> > array(
> > [0] =>
Greetings fellow bakers,
I need help with a development project where I work at a rescue
mission. I am creating a volunteer management system that involves
many models such as: groups, jobs, volunteers, skeleton_jobs and
scheduled_jobs. Being new to CakePHP, this is my quandary: How do I
implemen
Try:
$this->Company->Setting->id = $settingid; // Make sure this is the
unique id of the setting row you are trying to edit
$this->Company->Setting->saveField('invoice_number', $invoice_number
+1);
http://api.cakephp.org/class/model#method-ModelsaveField
Assuming $invoice_number is your newly cr
Hi all.
I recently decided that I got to get trained up in using a php
framework as up till now Ive been handcoding everything, and Ive been
told that its very inefficient! smile.gif
So I installed the latest version of cake on my windows vista machine
running WAMP.
I got the welcome page showin
I am curious if it is just me or if anyone has the same problem. I setup
Cake with a simple ACL just like the cookbook example locally with WAMP and
on a hosted server.
The database is exactly the same, I am using Dreamweaver with Upload on save
so the files are exactly the same locally and remo
Why not use an auto incremented primary key in the invoice table?
On Apr 13, 12:38 pm, Matt wrote:
> So I have an invoice model and a setting model. When the user creates
> a new invoice, I need to automatically change the invoice_number to
> one more than the current in the Settings model.
>
>
Hi
How to use ajax without helper of cakephp ?
thanks
--~--~-~--~~~---~--~~
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 from this group, s
Router::connect(
'/agents/:agent_slug',
array('controller' => 'agents', 'action' => 'profile'),
array(
'agent_slug' => '[-_A-Za-z]+',
'pass' => array('agent_slug')
)
);
You can adjust the regexp to suit the format of your slugs.
On
hello
My autocomplete code is not work
My controller code.
function autocomplete()
{
$this->layout = "ajax";
$this->set('genres', $this->Genre->findAll("url LIKE
'{$this->data['Genre']['url
So I have an invoice model and a setting model. When the user creates
a new invoice, I need to automatically change the invoice_number to
one more than the current in the Settings model.
I figured out that the code below will create a new row in my
database, but I need to figure out how to simply
Ordinarily, you'd use the model's $displayField var. But, since you
want a combination of 2 fields, you'll need to do a little more work.
Have a look at the AutoFieldBehavior [1] or Set class.
[1] http://bin.cakephp.org/saved/30870
On Sun, Apr 12, 2009 at 8:08 PM, Don wrote:
>
> Can someone poi
On Mon, Apr 13, 2009 at 12:41 AM, Miles J wrote:
>
> You need to set the data before hand.
>
> $this->Customer->set($this->data);
>
> Then validate it:
>
> $this->Customer->validates();
>
> But you dont even need to do that, save() does it automatically.
>
> $this->Customer->save($this->data);
I
I suspect this is due to the same session problems some people have
been having. You're making a 2nd request for the img. That's not out
of the ordinary, in itself, but this request goes through Dispatcher
and so Auth gets involved. It may have something to do with
Security.level (in core.php) bei
I am trying to do something and not sure if it is possible.
I want to change the URL from agents/profile/AGENTNAME
to
agents/AGENTNAME
I just want to remove the PROFILE action from the name. The index function
is not going to be needed for this controller.
How can I go about this?
Dave
--~
Perhaps your server is running in a different timezone than you are.
On Mon, Apr 13, 2009 at 2:45 AM, gaurav.v.sharma
wrote:
>
> Thanks a lot, it worked perfectly fine :-) But the "time part" in
> the created field is not having the correct value for current time ...
> what should be done i
I didn't realise it was HABTM. That changes things. See these posts:
http://teknoid.wordpress.com/2008/08/06/habtm-and-join-trickery-with-cakephp/
http://bakery.cakephp.org/articles/view/quick-tip-doing-ad-hoc-joins-in-model-find
On Mon, Apr 13, 2009 at 4:48 AM, Mike Cook wrote:
>
> brian, when
This should do the trick:
Set::combine($data, '{n}.title', '{n}.no_tags');
hth
grigri
On Apr 13, 3:30 pm, "ross.hagg...@googlemail.com"
wrote:
> Hi i have the following array
>
> array(
> [0] => Array(
> [title] => Centeral Line Bundle
> [no_tags] => 2
> )
>
> And i wa
Hi friends,
Is there any possibility to create multiple login
page using Auth.I am new to cake php.Plz reply
Regards,
http://www.leafgrafica.com";>C.Vijay vinoth
cvijayvin...@gmail.com
--~--~-~--~~~---~--~~
You received this message because you a
Hi i have the following array
array(
[0] => Array(
[title] => Centeral Line Bundle
[no_tags] => 2
)
And i want to create the following. I'm trying to use the Tagcloud
helper found in the Bakery. Someone mentioned i could use
Set::extract, i've given it a try but no joy.
Miles has the better way of doing things.
But just to directly answer your question, App::import basically does
the same as the old-school php include function.
So you'll do something like:
App::import('Model', 'MyModel');
$mymodel = new MyModel();
Hope that helps.
On Apr 11, 7:18 am, Miles J
What version of Cake are you using?
On Apr 10, 6:53 pm, mlecho wrote:
> i recently installed the amfphp framework into cake. When i go the
> amfbrowser, i get this:
>
> Fatal error: Call to undefined function loadcontroller() in /
> Applications/MAMP/htdocs/SITE/webroot/amfbrowser/config.inc.php
Hi,
this is not purely Cake related - however
I my application, I have a search where the user may search for a a
person or person's initials or nickname. I want the results to show
content from both.
eg: CAKE, CAKEPHP, or CP should be identified as the same set.
one way of doing that is storin
Thanks for your comments.
I'll think about it. But I don't understand, what you mean with using
views. The only way I think views are useful in this case is, that I
check in a foreach loop if the contents country_id equals the given
one and skip all other. Maybe that's a solution.
I still think i
Project page: http://code.google.com/p/oa-tools/
First, most of the information related to this project are in Chinese.
I'll try to write more in English if somebody interested in. And
thanks to alledu2, who had donated money to create this project.
OA-TOOLS intended to be a code generation tool
i usually wouldn't use time->format() because it uses date() instead
of strftime()
the first causes problems with displaying correct i18n results when
using other languages than englisch
so you have to decide on your own if time->format() is gould enough
for you or not
On 13 Apr., 05:39, Miles
So I've spent all day trying to set up Cake with xampp (on a Mac).
Everything I've read on Google says that by default xampp disables
mod_rewrite, but it was enabled in my installation yet I still didn't
see CSS on the first Cake page. All of the .htaaccess files were there
and everything looked o
Can someone point me in the correct direction.
I have 2 tables in my db, one called books and the other authors. In
the authors table, I have a firstName and lastName field
What I want to be able to do is when I add a new book, it belongs to
an author, I want to show in the drop down selection l
brian, when I try this though I get an " Unknown column
'Book.genre_id' in 'where clause' " error.
SELECT `Book`.`id`, `Book`.`title`, `Book`.`slug`, `Language`.`id`,
`Language`.`name` FROM `books` AS `Book` LEFT JOIN `languages` AS
`Language` ON (`Book`.`language_id` = `Language`.`id`) WHERE
`Bo
Also I am displaying the image like so:
http://site.com/
images/display/'.$image['Image']['id'].'" title="'.$image['Image']
['name'].'" alt="'.$image['Image']['name'].'" />'; ?>
This is where the problem lies I think
--~--~-~--~~---
Ahoi,
I have been getting kicked out of cake whenever I display a blob image
in cake.
Here is my function:
function display($id) {
if (!$id) {
$this->Session->setFlash(__('Invalid Image.', true));
$this->redirect(array('action'=>'index')
63 matches
Mail list logo