Re: Redirect www to non-www

2012-04-13 Thread Angel Robert Marquez
it's nice to see developers share information without being total douche
bags.

On Fri, Apr 13, 2012 at 3:50 PM, Justin Edwards wrote:

> You may also create another vhost for a catchall for whatever things you
> might want to redirect there, and give it a 301 to where you do want them
> to go.   I do things like this to force https, or add the www
>
>
> On Fri, Apr 13, 2012 at 5:29 PM, lowpass  wrote:
>
>> On Fri, Apr 13, 2012 at 9:43 AM, kdubya  wrote:
>> > I have always made rewrite rule changes in the /site/.htacess file
>> > exclusively.
>> >
>> > I don't really know why the  /site/app/.htaccess (or for that matter
>> > /site/app/webroot/.htaccess) files exist. I can't even dream up a
>> scenario
>> > where those files would ever be applied - as long as the /site/.htaccess
>> > file exists.
>>
>> It depends on what the DocumentRoot is set to. Of course, if one has
>> the ability to set it to /path/to/site/app/webroot in the main config
>> then the rewrite rules can be placed there and all .htaccess files
>> removed for better performance.
>>
>> --
>> Our newest site for the community: CakePHP Video Tutorials
>> http://tv.cakephp.org
>> Check out the new CakePHP Questions site http://ask.cakephp.org and help
>> others with their CakePHP related questions.
>>
>>
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> at http://groups.google.com/group/cake-php
>>
>
>  --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Se Ya Cake..bake a dick cake frosting on your face...............

2011-09-11 Thread Angel Robert Marquez
Virtual squeeze KM. It'll be OK.

I will miss your scheduled seo optimized question strategy.

On Sun, Sep 11, 2011 at 12:33 AM, Matthew Kaufman wrote:

> LOL, Your subject line is ridiculous...
>
>
> On Sun, Sep 11, 2011 at 3:32 AM, Matthew Kaufman wrote:
>
>> hahahahaha
>>
>>
>> On Sun, Sep 11, 2011 at 3:30 AM, Raisen  wrote:
>>
>>> Why are you comparing Cake to Drupal? Shouldn't you be comparing Cake to
>>> Django? Or Ruby on Rails? I don't see the point in your troll at all. Maybe
>>> you should had posted your message in the Joomla group.
>>>
>>> --
>>> Our newest site for the community: CakePHP Video Tutorials
>>> http://tv.cakephp.org
>>> Check out the new CakePHP Questions site http://ask.cakephp.org and help
>>> others with their CakePHP related questions.
>>>
>>>
>>> To unsubscribe from this group, send email to
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>>> at http://groups.google.com/group/cake-php
>>>
>>
>>
>  --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Passing fusion chart csv via javascript to a cake controller

2011-05-31 Thread Angel Robert Marquez
revised PHP code. apologize.

I need to export a csv file from fusion charts and pass the data to a cake
controller function via javascript/jquery.

*HTML*
Download CSV

*JS*
$(function(){
$('#*downloadCsv*').click(function(){
var myChart = FusionCharts('myChartId3');

var data = myChart.getDataAsCSV();

data = data.replace(/"/g, '').replace(/\n/g, 'BREAK');
var url = PATH +'dashboard/getCsvReport/?'+ encodeURIComponent( data );

window.location = url;
});
});

*PHP*
function getCsvReport($chart_data){
   $filename = 'chart';
   $data = str_replace('BREAK', "\n", $chart_data);

header("Content-type: application/force-download");
header("Pragma: no-cache");
header("Expires: 0");
header("Content-Disposition: attachment;
filename=\"".$filename.".csv\"");

$this->layout = 'empty';
$this->render('/ajax/empty');

echo $data;
 }


The above only writes the first key value pair to the csv file. Turning on
the AllowEncodedSlashes in the apache config is not an option.

Any ideas? References for sending post data as a form submission or ajax
request.

Thank you in advance.

-a

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Passing fusion chart csv via javascript to a cake controller

2011-05-31 Thread Angel Robert Marquez
I need to export a csv file from fusion charts and pass the data to a cake
controller function via javascript/jquery.

*HTML*
Download CSV

*JS*
$(function(){
$('#*downloadCsv*').click(function(){
var myChart = FusionCharts('myChartId3');

var data = myChart.getDataAsCSV();

data = data.replace(/"/g, '').replace(/\n/g, 'BREAK');
var url = PATH +'dashboard/getCsvReport/?'+ encodeURIComponent( data );

window.location = url;
});
});

*PHP*
function getCsvReport($chart_data){
   $filename = 'chart';

$data = str_replace('/', "\n", $chart_data);

header("Content-type: application/force-download");
header("Pragma: no-cache");
header("Expires: 0");
header("Content-Disposition: attachment;
filename=\"".$filename.".csv\"");

$this->layout = 'empty';
$this->render('/ajax/empty');

echo $data;
 }


The above only writes the first key value pair to the csv file. Turning on
the AllowEncodedSlashes in the apache config is not an option.

Any ideas? References for sending post data as a form submission or ajax
request.

Thank you in advance.

-a

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How do you do it?

2011-04-18 Thread Angel Robert Marquez
: )
( :

ask the economist to do a comparison against the door knob, the wind shield
wiper and the lightbox.

the lightbox is definitely not the new black...

i agree with krissy ? masters. the first interview i just got up and walked
out on a guy that didn't know sh*t from shinola asked me how I would write a
lightbox from scratch. i was thinking in my head you should be worrying
about all the 50megabyte images on your sire before you start with that jazz
bro. why would i not use 1 of the billions of lb libs out there. i am all
for from scratch but in a realistic b*ll crushing hierarchic of corporate
pigs..you/they're getting the fancybox-latest with a custom button. wanted
it yesterday etc...

On Mon, Apr 18, 2011 at 5:59 PM, cricket  wrote:

> On Mon, Apr 18, 2011 at 8:22 PM, Angel Robert Marquez
>  wrote:
> > the clock is ticking...
>
> Change in plan. I've convinced The Economist to allow me to
> guest-editorial on the subject of the lightbox. I plan to excoriate
> the current state of demoralized apathy that Web 2.0 has become with
> its dependence on the lightbox to get anything done. I contacted The
> Register first but they told me the lightbox was so last year, then
> suggested I call The Onion instead (they were being mean).
>
> > it is interesting that a different shade of box light is rather scarce as
> > well.
>
> Conformity. It's dragging us all down.
>
> (I'm laughing with you, btw. I'd have included a :-) or a LOL but ...
> well, that seems so juvenile.)
>
> :-)
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How do you do it?

2011-04-18 Thread Angel Robert Marquez
the clock is ticking...
..
.

it is interesting that a different shade of box light is rather scarce as
well.

On Mon, Apr 18, 2011 at 4:47 PM, cricket  wrote:

> On Mon, Apr 18, 2011 at 6:03 PM, Angel Robert Marquez
>  wrote:
> > cake should not allow the lightbox to be executed unless a check is made
> for
> > the amount of people using it at any one given time..?
>
> I read somewhere that Richard Stallman is dead set against the
> lightbox. Cake should follow his lead and announce a no-lightbox
> policy going forward in 2.0.
>
> I'll give Larry Masters exactly one hour to set the record straight
> before I post a vitriolic screed on /. denouncing CakePHP's posture on
> the lightbox.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How do you do it?

2011-04-18 Thread Angel Robert Marquez
On Mon, Apr 18, 2011 at 2:51 PM, Krissy Masters
wrote:

> The Beatles? Do they have their own light box? Perhaps we could make a
> light box with Beatles theme and every site on the web could use it! Wow
> that would be heaven!
>
Unfortunately I'm not big on sales and marketing initiatives even thought
those are the types of goals that keep my pockets fed. Sounds kinda greedy
and played out.

>
>
> Do we all have to like them?
>
of course not.


> Does it matter if I do or do not?
>
 no.

>
>
> Should every radio station play them?
>
no

> Perhaps a variety is nice, not sure if you are in a communist country where
> you do not have the freedom to choose and if your forced to listen to the
> Beatles all day then that’s just the way it is.
>
 You might be right.

But other than being not relevant to anything I was referring to I was
> simply asking for an opinion on options other than light box because yes I
> do think it is used “in excess” and simply placing everything inside of 1 is
> not the quick and dirty answer I was looking for.
>
I agree.

>
>
> But anyways in all seriousness if I offended you by saying my own opinion
> of what I think of the use of light box well I do apologize for hurting your
> feelings.
>
Well, it just seemed like you were using it to your advantage with your
presentational intent and everyone who uses one like you were running for
president or something. I don't want to feel awkward the next time someone
wants the lightbox.

cake should not allow the lightbox to be executed unless a check is made for
the amount of people using it at any one given time..?

>
>
> K
>
>
>
> *From:* cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] *On
> Behalf Of *Angel Robert Marquez
> *Sent:* Monday, April 18, 2011 7:08 PM
>
> *To:* cake-php@googlegroups.com
> *Subject:* Re: How do you do it?
>
>
>
> actually all i said is there is an obvious solution that is used by many
> making in your juvenile speak 'played out'.
>
>
>
> i'm all for innovating when needed; but, I am certainly against making
> something that was a good idea that has been overly produced by it's own
> accord being labeled something like played out. it's not the light
> boxes fault that so many people use it.
>
>
>
> do you not like the beatles either, krissy?
>
>
>
>
>
> On Mon, Apr 18, 2011 at 2:28 PM, Krissy Masters <
> naked.cake.ba...@gmail.com> wrote:
>
> Yes that’s exactly what I am saying! WTF! That’s no answer to the question
> WTF!
>
> But for those who love to go to the extreme WTF! WTF LOL ROTHL and all the
> other foolish juvenile text generation lingo you like to add.
>
>
>
> What I should say is that is clearly over used on because of its ease to
> use sure throw it in a lightbox is the EASY answer but there are people out
> there that do like to try new things and maybe try to come up with something
> new rather than just the obvious.
>
> Lets just put everything in a lightbox and never come up with anything new.
>
>
> Stop thinking and asking questions to alternative solutions since you seem
> to think a lightbox is the be all and end all flavor of the web can’t go
> wrong with it answer for every situation.
>
> Ok good stuff.
>
>
>
> This is the equivalent of saying ”since everyone is doing it I will too…why
> think for myself!”
>
>
>
> K
>
>
>
> *From:* cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] *On
> Behalf Of *Angel Robert Marquez
> *Sent:* Monday, April 18, 2011 6:38 PM
> *To:* cake-php@googlegroups.com
> *Subject:* Re: How do you do it?
>
>
>
> >>I had it in a lightbox which worked fine but everyone and their brother
> has a lightbox and its just so played out.
>
>
>
> This is the equivalent to saying 'toilet paper is played out'.
>
>
>
> wtf.
>
>
>
> On Mon, Apr 18, 2011 at 1:29 PM, Samuel Infante 
> wrote:
>
> I can think of three options:
>
> 1. Lightbox: very simple, a lot of people uses it for that reason and
> also it doesn't look bad.
> 2. Going back and forth: Annoying, as you stated.
> 3. Edit it right there: make the "ajax upload" of a pic and load it
> into a thumb size box (all in the same page) make the user to move the
> picture to get the thumb result and if you want to get fancy put a + -
> so they can zoom. I think this might be the thing you are looking for
> but I think it will be REALLY difficult to accomplish.
>
> Just my thoughts...
>
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://

Re: How do you do it?

2011-04-18 Thread Angel Robert Marquez
actually all i said is there is an obvious solution that is used by many
making in your juvenile speak 'played out'.

i'm all for innovating when needed; but, I am certainly against making
something that was a good idea that has been overly produced by it's own
accord being labeled something like played out. it's not the light
boxes fault that so many people use it.

do you not like the beatles either, krissy?


On Mon, Apr 18, 2011 at 2:28 PM, Krissy Masters
wrote:

> Yes that’s exactly what I am saying! WTF! That’s no answer to the question
> WTF!
>
> But for those who love to go to the extreme WTF! WTF LOL ROTHL and all the
> other foolish juvenile text generation lingo you like to add.
>
>
>
> What I should say is that is clearly over used on because of its ease to
> use sure throw it in a lightbox is the EASY answer but there are people out
> there that do like to try new things and maybe try to come up with something
> new rather than just the obvious.
>
> Lets just put everything in a lightbox and never come up with anything new.
>
>
> Stop thinking and asking questions to alternative solutions since you seem
> to think a lightbox is the be all and end all flavor of the web can’t go
> wrong with it answer for every situation.
>
> Ok good stuff.
>
>
>
> This is the equivalent of saying ”since everyone is doing it I will too…why
> think for myself!”
>
>
>
> K
>
>
>
> *From:* cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] *On
> Behalf Of *Angel Robert Marquez
> *Sent:* Monday, April 18, 2011 6:38 PM
> *To:* cake-php@googlegroups.com
> *Subject:* Re: How do you do it?
>
>
>
> >>I had it in a lightbox which worked fine but everyone and their brother
> has a lightbox and its just so played out.
>
>
>
> This is the equivalent to saying 'toilet paper is played out'.
>
>
>
> wtf.
>
>
>
> On Mon, Apr 18, 2011 at 1:29 PM, Samuel Infante 
> wrote:
>
> I can think of three options:
>
> 1. Lightbox: very simple, a lot of people uses it for that reason and
> also it doesn't look bad.
> 2. Going back and forth: Annoying, as you stated.
> 3. Edit it right there: make the "ajax upload" of a pic and load it
> into a thumb size box (all in the same page) make the user to move the
> picture to get the thumb result and if you want to get fancy put a + -
> so they can zoom. I think this might be the thing you are looking for
> but I think it will be REALLY difficult to accomplish.
>
> Just my thoughts...
>
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>
>
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>
>  --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How do you do it?

2011-04-18 Thread Angel Robert Marquez
>>I had it in a lightbox which worked fine but everyone and their brother
has a lightbox and its just so played out.

This is the equivalent to saying 'toilet paper is played out'.

wtf.

On Mon, Apr 18, 2011 at 1:29 PM, Samuel Infante  wrote:

> I can think of three options:
>
> 1. Lightbox: very simple, a lot of people uses it for that reason and
> also it doesn't look bad.
> 2. Going back and forth: Annoying, as you stated.
> 3. Edit it right there: make the "ajax upload" of a pic and load it
> into a thumb size box (all in the same page) make the user to move the
> picture to get the thumb result and if you want to get fancy put a + -
> so they can zoom. I think this might be the thing you are looking for
> but I think it will be REALLY difficult to accomplish.
>
> Just my thoughts...
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: You favorite IDE/ Dev Setup?

2011-04-05 Thread Angel Robert Marquez
fedora, mac os
terminal, terminator
vim, gedit
git


On Tue, Apr 5, 2011 at 8:07 PM, Krissy Masters
wrote:

> Is this going to go on forever?
>
> nGinX Apache, mySql, Post Cake, 5 foot 8, speak English, right handed, shoe
> size 8..
>
> Whats you favorite screen resolution next?
> What time zone are most Cake developers in?
>
> Is there a point to all this? Someone keeping track and going to release a
> mind blowing stats report? Was there a real question or debate or help
> needed for the individual who first asked or is this just an ongoing ever
> ending question with no real purpose only to fill everyones inbox on  a
> daily basis?
>
> Time to kill this thread perhaps?
>
> My 2 cents anyways.
>
> K
> -Original Message-
> From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On
> Behalf
> Of thom
> Sent: Wednesday, April 06, 2011 12:15 AM
> To: cake-php@googlegroups.com
> Subject: Re: You favorite IDE/ Dev Setup?
>
> Win XP
> Servers: Apache
> DB: MySql
> FW: Cakephp
>
>
> --
> Regards,,,
> mastanto
> http://www.mastanto.com
> http://thom-sharing.blogspot.com
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at
> http://groups.google.com/group/cake-php
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Global Variable

2011-02-09 Thread Angel Robert Marquez
well, the model class would only be in one place and the objects that
inherit those methods would be able to access the $timestamp variable
created upon insertion and use it as a reference point that would allow you
to reuse/polymorph one function based on the argument passed to it...

no=yes
unless, you want to over complicate things for no apparent good reason.

On Wed, Feb 9, 2011 at 5:54 PM, Krissy Masters
wrote:

> No, if that’s in 15 places then that’s of no use to me changing it in 15
> places
>
> New USERS, POSTS, EVENTS various models / controller
>
> All have created dates, now I want a standard set of “time” definitions to
> define if each of these is new, brand_new, recently_new…so if I say 2
> months
> from now NEW is now less than 12 hours I don’t have to go everywhere
> looking
> for if this $created less than 24 hours and make it 12, I just want to
> change it in 1 spot. $created less than NEW / BRAND_NEW / RECENTLY_NEW...so
> on so on.
>
>
>
> From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On
> Behalf
> Of Angel Robert Marquez
> Sent: Wednesday, February 09, 2011 9:51 PM
> To: cake-php@googlegroups.com
> Subject: Re: Global Variable
>
> interface when{
> public function new();
> }
>
> class shtuff implements when {
> function new($type);
> if ($type="helluv"){...blah1}
> ifelse($type="retro"){..blah2}
> }
>
> $now = new shtuff;
> $now->new('recent');
> On Wed, Feb 9, 2011 at 5:13 PM, Krissy Masters  >
> wrote:
> Quick question.
>
> I have 3 types / classifications of "NEW"
>
> Brand new = less than 24 hours
> New more than 24 but less than 48 hours
> And recently new more than 48 but less than 96 hours
>
> Now how can I define these globally so if I have in the code anywhere > NEW
> or < RECENT rather than tracing back all the spots where -24 hours so I can
> simply change the NEW, BRAND_NEW and RECENTLY_NEW if I want to increase or
> decrease their values later on
>
> So I can use something like this in the code:
> if ( $created < BRAND_NEW ){
> //fun stuff here
> }
>
> So I can change them in 1 spot and reflect on the site throughout.
>
> Configure::write('BRAND_NEW', date( 'Y-m-d H:i:s', strtotime( "-24 hours" )
> ) );
>
> Thanks
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at
> http://groups.google.com/group/cake-php
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at
> http://groups.google.com/group/cake-php
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Global Variable

2011-02-09 Thread Angel Robert Marquez
interface when{
public function new();
}

class shtuff implements when {
function new($type);
if ($type="helluv"){...blah1}
ifelse($type="retro"){..blah2}
}

$now = new shtuff;
$now->new('recent');

On Wed, Feb 9, 2011 at 5:13 PM, Krissy Masters
wrote:

> Quick question.
>
> I have 3 types / classifications of "NEW"
>
> Brand new = less than 24 hours
> New more than 24 but less than 48 hours
> And recently new more than 48 but less than 96 hours
>
> Now how can I define these globally so if I have in the code anywhere > NEW
> or < RECENT rather than tracing back all the spots where -24 hours so I can
> simply change the NEW, BRAND_NEW and RECENTLY_NEW if I want to increase or
> decrease their values later on
>
> So I can use something like this in the code:
> if ( $created < BRAND_NEW ){
> //fun stuff here
> }
>
> So I can change them in 1 spot and reflect on the site throughout.
>
> Configure::write('BRAND_NEW', date( 'Y-m-d H:i:s', strtotime( "-24 hours" )
> ) );
>
> Thanks
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: IDE

2010-12-23 Thread Angel Robert Marquez
np

i would highly recommend installing a linux distro and using vim with the
terminator terminal

yum..

[?]

On Thu, Dec 23, 2010 at 1:19 AM, Shinya Koizumi wrote:

> Thanks
>
> Sent from my iPhone
>
> On Dec 23, 2010, at 1:09 AM, Angel Robert Marquez 
> wrote:
>
> *linux*
> vim
> gedit
>
> *mac OS*
> vim
> textmate
> coda
>
> *windows*
> notepad2
> eclipse
> aptana
>
>
>
>
>
> On Wed, Dec 22, 2010 at 12:11 AM, fadhli < 
> e.fad...@gmail.com> wrote:
>
>> netbeans
>>
>>
>> On Wed, Dec 22, 2010 at 12:32 PM, Amit Badkas < 
>> amit.sanis...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I use easy eclipse for PHP 
>>> (<http://www.easyeclipse.org/site/distributions/php.html>
>>> http://www.easyeclipse.org/site/distributions/php.html). I have also
>>> used Aptana IDE once but found easy eclipse better.
>>>
>>> Amit Badkas
>>>
>>> PHP Applications for E-Biz: <http://www.sanisoft.com>
>>> http://www.sanisoft.com
>>>
>>>
>>>
>>> On Tue, Dec 21, 2010 at 8:27 PM, Kristofer < 
>>> krishop...@gmail.com> wrote:
>>>
>>>> What IDE do people typically use with CakePHP?  I've been doing stuff
>>>> from the Linux command line using vim for so long.  I'd like something
>>>> more graphical that (hopefully) supports SVN.  Looking for more point-
>>>> and-click.  :)
>>>>
>>>> Check out the new CakePHP Questions site <http://cakeqs.org>
>>>> 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 
>>>> cake-php@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>>  
>>>> cake-php+unsubscr...@googlegroups.com For more options, visit this
>>>> group at <http://groups.google.com/group/cake-php?hl=en>
>>>> http://groups.google.com/group/cake-php?hl=en
>>>>
>>>
>>>  Check out the new CakePHP Questions site <http://cakeqs.org>
>>> 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 
>>> cake-php@googlegroups.com
>>> To unsubscribe from this group, send email to
>>>  
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>>> at <http://groups.google.com/group/cake-php?hl=en>
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>  Check out the new CakePHP Questions site <http://cakeqs.org>
>> 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 
>> cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>>  
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> at <http://groups.google.com/group/cake-php?hl=en>
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>  Check out the new CakePHP Questions site <http://cakeqs.org>
> 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 
> cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at <http://groups.google.com/group/cake-php?hl=en>
> http://groups.google.com/group/cake-php?hl=en
>
>  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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
<>

Re: IDE

2010-12-23 Thread Angel Robert Marquez
*linux*
vim
gedit

*mac OS*
vim
textmate
coda

*windows*
notepad2
eclipse
aptana





On Wed, Dec 22, 2010 at 12:11 AM, fadhli  wrote:

> netbeans
>
>
> On Wed, Dec 22, 2010 at 12:32 PM, Amit Badkas wrote:
>
>> Hi,
>>
>> I use easy eclipse for PHP (
>> http://www.easyeclipse.org/site/distributions/php.html). I have also used
>> Aptana IDE once but found easy eclipse better.
>>
>> Amit Badkas
>>
>> PHP Applications for E-Biz: http://www.sanisoft.com
>>
>>
>>
>> On Tue, Dec 21, 2010 at 8:27 PM, Kristofer  wrote:
>>
>>> What IDE do people typically use with CakePHP?  I've been doing stuff
>>> from the Linux command line using vim for so long.  I'd like something
>>> more graphical that (hopefully) supports SVN.  Looking for more point-
>>> and-click.  :)
>>>
>>> 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 cake-php@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>  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 cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>  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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Brainstom Idea needed

2010-11-13 Thread Angel Robert Marquez
Rad!

I hope your wind filled sail takes you to fantastic places!

good job.

On Sat, Nov 13, 2010 at 8:40 PM, Dave Maharaj  wrote:

>  That will do it.
>
>
>
> Success. So case closed J
>
>
>
> Dave
>
>
>
> *From:* Angel Robert Marquez [mailto:angel.marq...@gmail.com]
> *Sent:* November-14-10 1:06 AM
>
> *To:* cake-php@googlegroups.com
> *Subject:* Re: Brainstom Idea needed
>
>
>
> sounds like a good plan. let me know if the solution from you're deductive
> logic yields the desired result : )
>
>
>
> 952589m
>
> 410058f
>
>
>
>
>
> On Sat, Nov 13, 2010 at 8:31 PM, Dave Maharaj  wrote:
>
> I just checked and the 2 that will not save and they are all numeric 952589
> and 410058 and my Route has 'post_id' => '[-_A-Za-z0-9]+', so my guess is
> since it does not have a letter in there its failing? Only thing I can think
> of since all the other id’s have a letter tossed in there
>
>
>
> Id’s are created rather then auto-inc so I will manually change the 2 and
> see how that goes. If that’s the case I will have to ensure generated id’s
> have a letter in them.
>
>
>
> Dave
>
>
>
> *From:* Angel Robert Marquez [mailto:angel.marq...@gmail.com]
> *Sent:* November-14-10 12:50 AM
> *To:* cake-php@googlegroups.com
> *Subject:* Re: Brainstom Idea needed
>
>
>
> what are the post_id numbers for the anomalies?
>
> On Sat, Nov 13, 2010 at 8:10 PM, Dave Maharaj  wrote:
>
> Ok this is a weird one.
>
> I made my “star” favourites icon click sends ajax request and saves the
> post as favourite to favorite_posts table. Nothing over the top there.
>
>
>
> So I added 100 dummy posts and went thru bookmarking everyone as a
> favourite only to see 98 saved. There are 2 Posts that will not save and I
> can not figure out why.
>
>
>
> I have deleted the db table tried again. The post_id is unique , no
> permissions to bookmark once logged in…I simply can not understand why 2 of
> 100 will not save.  I can click to save / click again removes the fav, click
> on same one over and over and they work fine.
>
>
>
> 98 respond with my JSON response success
>
>
>
> The 2 that do not save return an HTML response.
>
> They  return a view not even related to the page I am on. I am at
> posts/index and the response for those crazy to renders favourites/index
> form to delete.
>
>
>
> Just looking for any random idea that might help.
>
>
>
>
>
>
>
>
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
>
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
>
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
> 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 grou

Re: Brainstom Idea needed

2010-11-13 Thread Angel Robert Marquez
sounds like a good plan. let me know if the solution from you're deductive
logic yields the desired result : )

952589m
410058f



On Sat, Nov 13, 2010 at 8:31 PM, Dave Maharaj  wrote:

>  I just checked and the 2 that will not save and they are all numeric
> 952589 and 410058 and my Route has 'post_id' => '[-_A-Za-z0-9]+', so my
> guess is since it does not have a letter in there its failing? Only thing I
> can think of since all the other id’s have a letter tossed in there
>
>
>
> Id’s are created rather then auto-inc so I will manually change the 2 and
> see how that goes. If that’s the case I will have to ensure generated id’s
> have a letter in them.
>
>
>
> Dave
>
>
>
> *From:* Angel Robert Marquez [mailto:angel.marq...@gmail.com]
> *Sent:* November-14-10 12:50 AM
> *To:* cake-php@googlegroups.com
> *Subject:* Re: Brainstom Idea needed
>
>
>
> what are the post_id numbers for the anomalies?
>
> On Sat, Nov 13, 2010 at 8:10 PM, Dave Maharaj  wrote:
>
> Ok this is a weird one.
>
> I made my “star” favourites icon click sends ajax request and saves the
> post as favourite to favorite_posts table. Nothing over the top there.
>
>
>
> So I added 100 dummy posts and went thru bookmarking everyone as a
> favourite only to see 98 saved. There are 2 Posts that will not save and I
> can not figure out why.
>
>
>
> I have deleted the db table tried again. The post_id is unique , no
> permissions to bookmark once logged in…I simply can not understand why 2 of
> 100 will not save.  I can click to save / click again removes the fav, click
> on same one over and over and they work fine.
>
>
>
> 98 respond with my JSON response success
>
>
>
> The 2 that do not save return an HTML response.
>
> They  return a view not even related to the page I am on. I am at
> posts/index and the response for those crazy to renders favourites/index
> form to delete.
>
>
>
> Just looking for any random idea that might help.
>
>
>
>
>
>
>
>
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
>
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Brainstom Idea needed

2010-11-13 Thread Angel Robert Marquez
what are the post_id numbers for the anomalies?

On Sat, Nov 13, 2010 at 8:10 PM, Dave Maharaj  wrote:

>  Ok this is a weird one.
>
> I made my “star” favourites icon click sends ajax request and saves the
> post as favourite to favorite_posts table. Nothing over the top there.
>
>
>
> So I added 100 dummy posts and went thru bookmarking everyone as a
> favourite only to see 98 saved. There are 2 Posts that will not save and I
> can not figure out why.
>
>
>
> I have deleted the db table tried again. The post_id is unique , no
> permissions to bookmark once logged in…I simply can not understand why 2 of
> 100 will not save.  I can click to save / click again removes the fav, click
> on same one over and over and they work fine.
>
>
>
> 98 respond with my JSON response success
>
>
>
> The 2 that do not save return an HTML response.
>
> They  return a view not even related to the page I am on. I am at
> posts/index and the response for those crazy to renders favourites/index
> form to delete.
>
>
>
> Just looking for any random idea that might help.
>
>
>
>
>
>
>
>
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: REST in cakePHP

2010-04-15 Thread Angel Robert Marquez
zip up your app folder and upload/email. i'll run through in tandem, if i
have time.

On Thu, Apr 15, 2010 at 9:40 AM, ivan  wrote:

> i'am sorry John if i make you loose interest for me. I hope you can
> still help me. One more time i say sorry for you John. God bless you
> forever.
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: REST in cakePHP

2010-04-15 Thread Angel Robert Marquez
[]define('WEBSERVICES', 'on');
make a rest.php file in controllers/components

and did you make the corresponding table in your db for the controller?

On Thu, Apr 15, 2010 at 12:07 AM, ivan  wrote:

> I followed the steps as in
> http://bakery.cakephp.org/articles/view/restful-web-services-with-cakephp.
>
> and this is what I do:
> 1. in controllers/components
>  class RestComponent extends Object {
> }
> ?>
> 2. make a rest.php file in views/helpers
>class RestHelper extends Helper
>   {
>   }
> ?>
> 3. In views/layouts make a folder called 'rest' and put a
> default.thtml file in it
> '); ?>
> 
> 4. in models/pencarian_kata_kitabs.php
>  class PencarianKataKitab extends AppModel {
>
>var $name = 'PencarianKataKitab';
>var $belongsTo = array(
>'Alkitab' => array(
>'className' => 'Alkitab',
>'foreignKey' => 'KITAB_ID',
>'conditions' => '',
>'fields' => '',
>'order' => ''
>),
>'TempKata' => array(
>'className' => 'TempKata',
>'foreignKey' => 'KATA_ID',
>'conditions' => '',
>'fields' => '',
>'order' => ''
>)
>);
>var $validate = array(
>'KITAB_ID' => array('numeric',VALID_NOT_EMPTY),
>'KATA_ID' => array('numeric',VALID_NOT_EMPTY)
>);
>
> }
> ?>
> 5. in controllers/pencarian_kata_kitabs_controller.php
> function listing() {
>   $this->set('alkitabku', ClassRegistry::init("Alkitab")-
> >find('all',
>array(
>  'conditions'=>array(
>"and"=>array(
>'CONCAT(Alkitab.kitab,"
> ",Alkitab.pasal) like '=>'mazmur',
>'CAST(Alkitab.ayat AS UNSIGNED)
> >='=>'1',
>'CAST(Alkitab.ayat AS UNSIGNED)
> <='=>'1'
>)
>  )
>   )
>));
>}
> 6. in views/pencarian_kata_kitabs/rest/listing.thtml
> if (isset($alkitabku) and !empty($alkitabku)) :  ?>
> 
> 
>
>
>
>
>
> 
> 
> 
>
>check('Message.flash')): ?>
>read('Message.flash')));?> msg>
>
>
> 
> 
>
> when i access http://localhost/alkitab/rest/pencarian_kata_kitabs/listing,
> this result is
> not found
> Error: The requested address '/rest/pencarian_kata_kitabs/listing' was
> not found on this server.
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: REST in cakePHP

2010-04-15 Thread Angel Robert Marquez
oops, i meant this:
Turn on webservices in config/core.php by uncommenting this line (or
changing 'off' to 'on')

On Thu, Apr 15, 2010 at 12:14 AM, Angel Robert Marquez <
angel.marq...@gmail.com> wrote:

> []define('WEBSERVICES', 'on');
> make a rest.php file in controllers/components
>
> and did you make the corresponding table in your db for the controller?
>
> On Thu, Apr 15, 2010 at 12:07 AM, ivan  wrote:
>
>> I followed the steps as in
>> http://bakery.cakephp.org/articles/view/restful-web-services-with-cakephp
>> .
>>
>> and this is what I do:
>> 1. in controllers/components
>> > class RestComponent extends Object {
>> }
>> ?>
>> 2. make a rest.php file in views/helpers
>> >   class RestHelper extends Helper
>>   {
>>   }
>> ?>
>> 3. In views/layouts make a folder called 'rest' and put a
>> default.thtml file in it
>> '); ?>
>> 
>> 4. in models/pencarian_kata_kitabs.php
>> > class PencarianKataKitab extends AppModel {
>>
>>var $name = 'PencarianKataKitab';
>>var $belongsTo = array(
>>'Alkitab' => array(
>>'className' => 'Alkitab',
>>'foreignKey' => 'KITAB_ID',
>>'conditions' => '',
>>'fields' => '',
>>'order' => ''
>>),
>>'TempKata' => array(
>>'className' => 'TempKata',
>>'foreignKey' => 'KATA_ID',
>>'conditions' => '',
>>'fields' => '',
>>'order' => ''
>>)
>>);
>>var $validate = array(
>>'KITAB_ID' => array('numeric',VALID_NOT_EMPTY),
>>'KATA_ID' => array('numeric',VALID_NOT_EMPTY)
>>);
>>
>> }
>> ?>
>> 5. in controllers/pencarian_kata_kitabs_controller.php
>> function listing() {
>>   $this->set('alkitabku', ClassRegistry::init("Alkitab")-
>> >find('all',
>>array(
>>  'conditions'=>array(
>>"and"=>array(
>>'CONCAT(Alkitab.kitab,"
>> ",Alkitab.pasal) like '=>'mazmur',
>>'CAST(Alkitab.ayat AS UNSIGNED)
>> >='=>'1',
>>'CAST(Alkitab.ayat AS UNSIGNED)
>> <='=>'1'
>>)
>>  )
>>   )
>>));
>>}
>> 6. in views/pencarian_kata_kitabs/rest/listing.thtml
>> if (isset($alkitabku) and !empty($alkitabku)) :  ?>
>> 
>> 
>>
>>
>>
>>
>>
>> 
>> 
>> 
>>
>>check('Message.flash')): ?>
>>read('Message.flash')));?>> msg>
>>
>>
>> 
>> 
>>
>> when i access http://localhost/alkitab/rest/pencarian_kata_kitabs/listing
>> ,
>> this result is
>> not found
>> Error: The requested address '/rest/pencarian_kata_kitabs/listing' was
>> not found on this server.
>>
>> 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 cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.