Saw this today and just had to share
http://www.redmarblegames.com/cakemania.html
its a game where you bake cakes
--
(the old fart) the advice is free, the lack of crankiness will cost you
- its a fine line between a real question and an idiot
http://blog.samdevore.com/archives/2007/03/05/w
No the default rewrite rule will not get in the way.
The only issue is how the host implements the ssl. Most hosts just
link the ssl to the main site directory but some use a seperate folder
(Plesk comes to mind) that requires duplicate files. This may also
cause session cookie path issues, alt
For my web application I would like to have SSL enabled just for the
login page and no SSL for rest of the pages. Is there a Cakephp
example explaining this idea? Will the default RewriteRule
in .htaccess interfere with this?
Thanks
- Vishal
--~--~-~--~~~---~--~~
yey, let's get baking then...
2007/9/26, Grant Cox <[EMAIL PROTECTED]>:
>
>
> > Why is it that it didn't work by default?
>
> Cake does not automatically assume your associations - as this would
> involve a lot of database analysis every request (it only does this
> while Baking). Your associatio
Hi there,
I tried to set up the FileHandler from reversefolds (http://
www.reversefolds.com/articles/show/filehandler), upload works fine
when in 'array'-mode, but when I try use $_handlerType 'db' it stops
working. I found out it throws me an error 'Call to a member function
on a non-object', af
2007/9/26, Geoff Ford <[EMAIL PROTECTED]>:
>
> Try getting it to work without the ajax form to begin with. Also do a
> debug($this->data) to make sure you are reciving the data you expect.
>
> Geoff
> --
> http://arab6.free-site-host.com/vb/Mana.htm
>
> On 9/26/07, seacloud9 <[EMAIL PROTECTED]> wr
Try getting it to work without the ajax form to begin with. Also do a
debug($this->data) to make sure you are reciving the data you expect.
Geoff
--
http://lemoncake.wordpress.com
On 9/26/07, seacloud9 <[EMAIL PROTECTED]> wrote:
>
>
> /- Thank You for your help Geoff
Hello,
I'm trying to create these associations that are not really (directly)
there on the database level, but should be present in my CakePHP
model. To give an idea of what I'm talking about, consider the
following example.
Assume three different models:
- Location
- Event
- Photoset
With asso
> Why is it that it didn't work by default?
Cake does not automatically assume your associations - as this would
involve a lot of database analysis every request (it only does this
while Baking). Your associations have to be specified in the model
for them to work.
--~--~-~--~~
Hi List,
I may be aproaching this incorrectly but it seems to me that the
current helper I'm working on could use the ability to invoke a
renderElement() call. However, it seems that for Cake 1.1.17 anyway,
that renderElement is only meaningful in the view.
Well, my helper is accessed in a view
I wrote a message to the google group for enhancements about a 3
months ago that asked for the feature to moderate "Pages" and "Files".
Still nothing. So, unfortunately we are stuck policing this this stuff
on our own for now. Thanks for putting in the effort Christopher. It
is much appreciated. B
I do not think it is a very good idea to have your first programming
job be a paid one. Myself, and I am guessing most people on this
group, did a lot of programming of my own projects before contracting
out to others.
In addition, dealing with medical information usually has a host of
government
I'll try upgrading... Thank you!!!
On Sep 25, 3:24 pm, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote:
> On 9/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > Yes, I did. Like below.
>
> > var $name = "Members";
> > var $helpers = array('Html', 'Form');
>
> I could be wrong, but I think
A bit later, but I've looked at the request headers with Firebug. Cookie
data is being went. The session ID being sent is the right one at the first
Ajax request, but it changes every click after that.
I'm still opting for a bug (writing to a session in response to a Ajax
request starts a new sess
I think you need to use a sync tool like Spectral Core SYNC
Another way is to use writable views to build a second scheme on the
same model
dolce
On 25 Sep., 22:07, "Sonic Baker" <[EMAIL PROTECTED]> wrote:
> Hi Bakers,
>
> I'm building an In-House app with CakePHP. When I start the testing phase
/- Thank You for your help Geoff.
Although I can't seem to quite get it... I am not sure if I am using
the helper the proper way.
Updated Views:
Index View
form(array('action'=>'/yahoo/showresult'), 'post',
array('update'=>'questionID','loading'=>"Toggle.display('sp
This manipulates an association in the model and uses it somehow for
pagination. But it does NOT paginate a custom mySQL query.
On Sep 25, 5:39 pm, rtconner <[EMAIL PROTECTED]> wrote:
> If you want, you can use these two functions in your model to do
> custom paginating...
>
> http://bin.cakephp.
Hrmm, so is someone an admin for this group that can stop pages from
being edited by any user? Just fixed the Cake App/Sites in the Wild
page after an ass hat screwed the page up. I guess it's not too huge
of a deal but, it just aggravates me. No one gives a flying rat's @$$
about hip-hop-chat
You should be able to find all necessary information in the CakePHP
manual. It tells you how to install CakePHP in the following chapter:
http://manual.cakephp.org/chapter/installing. The section "Advanced
setup" tells you how to install CakePHP in a way which is not the
default way.
If this does
Have you tried the method rawQuery($sql)? I don't have experience with
calling stored procedures from CakePHP, but from the API it seems more
logical to me to use this method. See the API docs:
http://api.cakephp.org/1.2/class_dbo_source.html#4c5cec0634f083d98db9f98762ab0b98.
Cheers,
Jan
--~--
I'm developing with a system that uses quite a few stored procedures
and i have run into a number of problems.
(I am using MYSQLI to connect.)
// login
if (isset($_POST['username']) && isset($_POST['password'])) {
$this->UserAccess->recursive = 1;
$sql =
I figured out!!!
The problem wasn't cakephp, it was a component for generating XML
called minixml, the cause of the error was that the classes withing
minixml contained break lines like this:
"breakline"
"breakline"
"breakline"
therefore putting the extra breaklines in the soap response.
On S
Hi Bakers,
I'm building an In-House app with CakePHP. When I start the testing phase
I'd like to update the old legacy database (on a different server) aswell so
that
(a) there is a fall back in place
(b) features in the old system can still be used while they are being
developed in the cake app.
On 9/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Yes, I did. Like below.
>
> var $name = "Members";
> var $helpers = array('Html', 'Form');
I could be wrong, but I think the "create" function, as well as "end" ,
"input", etc... are in 1.2, not 1.1.x. The FormHelper in 1.1.x is fairl
*On Tue, Sep 25, 2007 at 06:38:11PM - candesprojects <[EMAIL PROTECTED]>
wrote:
> Can anyone tell me how can I make a timezone component, that can
> handle timezone in php4, with Cake.
> I'm want to make a cron job for some events that have different
> timezones.
> I need to convert the serv
Hello group.
I have the latest cake, which should have this error fixed, but I get
this:
Warning (2): stristr() [function.stristr]: Empty delimiter. [CORE/cake/
libs/controller/components/auth.php, line 778]
Any idea why?
I don't see this on my dev machine with the same cake version.
Regards,
J
Yes, I did. Like below.
var $name = "Members";
var $helpers = array('Html', 'Form');
On Sep 25, 11:44 am, mithnik <[EMAIL PROTECTED]> wrote:
> Did you put the Form helper in the controller?
> You need this in the controller:
> var $helpers = array('Html', 'Form');
--~--~-~--~~--
Did you put the Form helper in the controller?
You need this in the controller:
var $helpers = array('Html', 'Form');
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send em
Hi,
Can anyone tell me how can I make a timezone component, that can
handle timezone in php4, with Cake.
I'm want to make a cron job for some events that have different
timezones.
I need to convert the server timezone to different timezones, and
taking care about the DTS.
Thanks
Cristian
--~-
My old question :
>How I can grant specific rights to every CRUD operation of a controller
>without the need to specify every CRUD action in the ACOs table?
---
==>ANSWER
-
;o)
your welcome mate!
Dan
On 25 Set, 16:55, "Naoise Golden" <[EMAIL PROTECTED]> wrote:
> In your model use $belongsTo and not *$belongTo*
>
> Yes! That worked! See... just a simple error in the code. Thank you so much.
> Why is it that it didn't work by default?
--~--~-~--~~-
Needless to say I'm new to Cake!
Does anyone know why I get
"Fatal error: Call to undefined method FormHelper::create() in /app/
web/dev/cake/app/views/members/login.thtml on line 4"
from the code below?
Login
create('Members', array('action' => 'login')); //line 4
echo $fo
[EMAIL PROTECTED] wrote:
> Man I guess I'm really not getting my point across. This will be my
> last try, I promise :)
Code formatting debates are religious debates, there's no point in
having them and no matter what you say you'll never change anyone's
opinion.
Indent provides a way around
In your model use $belongsTo and not *$belongTo*
Yes! That worked! See... just a simple error in the code. Thank you so much.
Why is it that it didn't work by default?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On 9/25/07, Tane Piper <[EMAIL PROTECTED]> wrote:
>
> I've created a GeSHi Behaviour for my application I am working on.
> Here is the code:
I don't have a solution to your problem but I am wondering why a
behaviour why not a helper?
T
--
===
On 9/25/07, Tane Piper <[EMAIL PROTECTED]> wrote:
>
> Hey folks,
>
> I've created a GeSHi Behaviour for my application I am working on.
> Here is the code:
>
>
As a polite suggestion for next time, if you want to paste a bunch of
code to the mailing list please consider using http://bin.cakephp.o
Ok, I managed to work out a little hack that's worked fine for now,
but I was pointed to using the Set class, which I've known about for
ages, but never used.
Now on my below array for pastes, I do this:
Set::check($results, '{n}.Paste.paste') to see if the key exists,
however I always get a ret
Also, I *am* using the Javascript helper. :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send emai
I'm using version 1.2.0.5146alpha and $scripts_for_layout isn't
working correctly. I have the following in my layout:
and this in my view:
link('js_insert', false); ?>
Is there something else that I need for this to work?
Thanks in advance!
--~--~-~--~~~---~--~-
If you want, you can use these two functions in your model to do
custom paginating...
http://bin.cakephp.org/saved/21687
On Sep 25, 8:37 am, burzum <[EMAIL PROTECTED]> wrote:
> I have this query here that gets an average value from the errands
> table for each employee and i want to paginate it.
I have this query here that gets an average value from the errands
table for each employee and i want to paginate it. How can i do it!? I
don't get it. I've wasted already 4 hours on this "problem" and
looking trough the API and the pagination helper... :(
Any ideas how to do it in a nice way?
S
I have this query here that gets an average value from the errands
table for each employee and i want to paginate it. How can i do it!? I
don't get it. I've wasted already 4 hours on this "problem" and
looking trough the API and the pagination helper... :(
Any ideas how to do it in a nice way?
S
Okay Alexander,
I think I get it better now,
How about this:
function extend($id)
{
//Note: The musicianRequest model is automatically loaded for us at
$this->MusicianRequest.
// Check to see if we have get data...
if (empty($id))
{
$this->redirect('MusicianRequest/index'); //
Wow jcsiegrist,
it works!
So far I have a basic example for it:
-
CONTROLLER sections_controller.php (partial)
-
function add() {
if (!empty($this->data)) {
Brent,
Thanks for the advice, I've been on *nix for what seems like forever,
and I've known and used indent before. But I'm sure others will be
able to use the advice as well.
Man I guess I'm really not getting my point across. This will be my
last try, I promise :)
I mean the submission page
Hey folks,
I've created a GeSHi Behaviour for my application I am working on.
Here is the code:
'#fff',
'colour2' => '#eee'
);
if(!isset($this->settings[$model->name])) {
$this->settings[$model->nam
Did you already add a first author?
My suggestion is to use the command line bake script to build your
models
In your model use $belongsTo and not *$belongTo*
Dan
On 25 Set, 14:38, naoise <[EMAIL PROTECTED]> wrote:
> Hi, I've been researching already too much but I don't know what's
> wrong.
>
Hello
I have developed my first cake app and could do with some help setting
it up. It is going to be running within an existing site:
e.g. http://www.domain.com/mycakeapp
I have developed the site with the http_root set to:
app/
And have now realised for security reasons I should have been
d
Hi, I've been researching already too much but I don't know what's
wrong.
Here's the question: when scaffolding, if there's a foreign key
correctly named in the table, what should appear in the scaffolding
form? I understand that some kind of drop down menu...?
Here's what I have:
CREATE TABLE
Cheers jcsiegrist,
I'll play around with it!
If/when you have time an example usage is appreciated (I guess I
should use your functions in beforeSave, afterSave etc conditions).
Dan
On 25 Set, 14:29, jcsiegrist <[EMAIL PROTECTED]> wrote:
> Hi,
>
> on a project I use a custom behavior that ex
Hi,
on a project I use a custom behavior that extended the existing
translate behaviort. This setup lets me add Translations to any model.
I don't have the time to fully explain what I did right now and how to
use it, but maybe it gives you some ideas or a starting point.
http://bin.cakephp.org/
if the model you are trying to access is an associated model then
$this->Othermodel->method() will work
If not what you are trying to do is not recommended practice
but if you insist you can take a look at loadModel();
There was a discussion on this last week
Cheers
T
On 9/25/07, Ziad <[EM
Nobody can help me? please :-(
DavidGot wrote:
>
>
> I have a model named product where I use the translate behavior.
> I just want to translate the Desciption content of a produit
> the code is:
> class Product extends AppModel {
> var $name = 'Product';
> var $actsAs = array('Translate' =>
Thanks for your reply.
The action is simple. In my index action, there is a list of all
Musician Requests. After every Request, there is a link, which
executes my extend action with the given ID.
The Extend Action shoul only take 'lifetime' and adding 4 weeks to
it. Th rest of the data is
Hi all,
I did some searching for this but could not find anything. Is there a
way for me to get access to other models from within a model? What I
want to do is have my own function inside one of my models that needs
access to another model. How can this be achieved? So something like
the $uses i
I found solution by doing this:
put
var $uses = array();
in my AppController,
and in my PortfolioController set needed model
var $uses = array('Gallery','Image');
It is working but I'm not sure if it is right.
is there any problem doing this?
On Sep 25, 2:02 pm, xaio <[EMAIL PROTECTED]> wro
I have a model named product where I use the translate behavior.
I just want to translate the Desciption content of a produit
the code is:
class Product extends AppModel {
var $name = 'Product';
var $actsAs = array('Translate' => array('Description'));
?>
This translation is working fine.
Now I
Thanks Grant, i do this but it still gives me that error.
It wants me to have Portfolio model
And if i do
var $uses = array();
it works but i don't have access to other models
On Sep 25, 4:54 am, Grant Cox <[EMAIL PROTECTED]> wrote:
> http://manual.cakephp.org/chapter/controllers
>
> var $us
If you use mod-rewrite, only the .htacess of the webroot is necessary.
I had a similar problem, and needed to add a rewriteBase / into my
htaccess.
On Sep 24, 10:34 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I'm setting up a more secure production-style CAKEphp configuration
> for our d
I think this is in the manual, anyway... ;)
2007/9/24, Joshua McFarren <[EMAIL PROTECTED]>:
>
>
> I figured this out so I thought I would post the solution. The
> VirtualHost DocumentRoot needs to be:
>
> /var/www/cake/site2/webroot/
>
> NOT
> /var/www/cake/site2/
>
>
> >
>
--~--~-~--~---
60 matches
Mail list logo