Building First Application

1. 4 months ago

Lawi
Member
Registered: 2013-01-21
Posts: 1

Building First Application

Hi, Kindly may someone tell me how i can create a simple application using Nette, am new to it and trying to learn as first as i can. Does it have code generation like Yii..?

 

2. 4 months ago

hrach
Member
Registered: 2007-03-11
Posts: 1087

Re: Building First Application

 

3. 4 months ago

madalina
Member
Registered: 2013-01-30
Posts: 7

Re: Building First Application

Hello,
Could anyone explain me, please, how the jobs work in Nette Framework?
Or more exactly how could I run a job at certain hours or in certain days.
Is there any English documentation about that?
Thank you!
Regards,
Madalina

 

4. 4 months ago

Milo
Member
Registered: 2010-05-04
Posts: 505

Re: Building First Application

Hi,

Nette Framework does not contain such tools. It is a bundle of PHP libraries for fast and safe web pages/applications/services development.

For scheduled runs you must use other tools, like cron on Linux or Task Scheduler on Windows.

Or maybe I misunderstood your question.

Last edited by Milo (2013-01-30 13:20)

 

5. 4 months ago

madalina
Member
Registered: 2013-01-30
Posts: 7

Re: Building First Application

thank you for your answer!
so I should simply create a php file and run it from cron?
or could you recommend some tutorial about this process?

 

6. 4 months ago

Milo
Member
Registered: 2010-05-04
Posts: 505

Re: Building First Application

You're welcome.

It depends on your situation. Do you have Nette application already written and are you looking for scheduled task running within the application? Or… are you writing new scheduled task in PHP?

Don't be shy and post more information with details…

 

7. 4 months ago

madalina
Member
Registered: 2013-01-30
Posts: 7

Re: Building First Application

Well.. I have the application already written. And now I want to create a new php script related to this application, which should run automatically at some date. The script fills in some information in the database for certain users and sends confirmation emails.
So after I have this new script I don't really know which are the next steps.

 

8. 3 months ago

hrach
Member
Registered: 2007-03-11
Posts: 1087

Re: Building First Application

I suggest creating some bootstrap file without routing, then two different bootstrap files, which includes the first one, and each of them add routing. The first one adds classic web routing, the second one adds CliRouter.

Then just add to you cron sth like:

php /path/to/boostrap_with_cli_router.php YourPresenter:action -param=test

 

9. 3 months ago

Honza Kuchař
Moderator
Registered: 2007-08-12
Posts: 1651

Re: Building First Application

CliRouter looks very interesting and useful!

Last edited by Honza Kuchař (2013-02-06 14:10)

 

10. 2 months ago

ezraobiwale
Member
Registered: 2013-03-25
Posts: 2

Re: Building First Application

Hi. I'm totally new to the NF. I've got the quickstart but it won't work. I get a 500 Server Error. What to do?

 

11. 2 months ago

Jan Tvrdík
Nette guru
Registered: 2008-04-13
Posts: 1631

Re: Building First Application

@ezraobiwale: There are two types of server errors.

  1. Apache Server Error (screen) is usually caused by something in www/.htaccess. Use Apache log to determine more details.
  2. Nette Server Error (screen) usually happen if temp or log is not writable. Use Nette log (in log directory) to determine more details.

 

Board footer