Just one Recipe

quanto basta app si ready and we are working on our last recipe before the App Store Launch.

We are so excited about the project and we can’t wait for you all to see it!
Awaiting for the publication, you can watch some screenshots in this post and have a look to the available recipes on the web site.

Stay tuned and thanks for the support!

recipe box detail settings and facebook screen main food categories screen

 

Cook Italian Recipes with iPad

Finally the app is ready! We have finished the development. Graphics elements, features, behaviours and many other things.
The app has some nice UI elements, like the “Network unavailable” box, the “Recipe detail” view and the “Filters” descriptions. Will be supported all the iPad versions with iOS 5.0 or superior.

how to cook italian recipes

Now that the application is ready we are focusing on recipes and translations. There is much work to do, prepare dishes, write all the steps, take pictures and review all the stuff.
Actually we are prepared about 40 recipes, First plates, Second plates, Sides, Desserts and Basics.

The app will be sold with 40 (or more) recipes and will be updated periodically with new free stuff.
The price of the app is not yet set, but will be between 0.99$ and 2.99$.

You can go to quantobasta.info for more informations. We have updated the website with some screenshots and a real-time list of the recipes that you will find in the app.

Stay tuned and buon appetito!

Quanto basta per cucinare Italiano?

Ci siamo ragazzi! Siamo alla fine dei lavori e all’inizio di una nuova avventura!

C’è voluto quasi un anno di lavoro e tanto studio ma alla fine ne è valsa la pena. Stiamo per presentarvi: Quanto Basta, l’applicazione definitiva per iPad di ricette tradizionali Italiane.

L’app è nella fase finale di sviluppo e stiamo concludendo tutte le ricette.
Parlo al plurale, perché questo progetto non è esattamente mio, ma di una mia cara amica, cuoca.

Il mercato di punta, come avrete capito, non è quello Italiano, ma estero. Ogni Italiano ha in casa una mamma/nonna/zia/altro che gli insegna a cucinare, a portare avanti quei sapori a noi cari. Ma chiunque non abbia radici Italiane è giusto che conosca i nostri gusti, il nostro modo di mangiare.. tanto invidiato in tutto il mondo!

Quanto Basta è l’app per tutto il mondo, scritta da Italiani.
Presto avrete nuove notizie, intanto andate a mettere Like nella pagina ufficiale di Facebook!

Stay tuned!

CakePHP e la localizzazione

Era tantissimo tempo che non lavoravo in PHP e con CakePHP. Tutto questo tempo mi ha arrugginito da una parte ma ho imparato moltissimo sulla programmazione e questo mi ha spinto a vedere alcune cose in modo differente.

Comunque non è questo il punto dell’articolo. :)
Lavorando con CakePHP mi sono imbattuto su un problema della localizzazione, dove la guida di Cake ci dice che per localizzare i template basta aggiungere poche righe di codice all’AppController:

// App Controller Code.
function beforeFilter()
{
    $locale = Configure::read('Config.language');
    if ($locale && file_exists(VIEWS . $locale . DS . $this->viewPath))
    {
        // e.g. use /app/View/fre/Pages/tos.ctp instead of /app/View/Pages/tos.ctp
        $this->viewPath = $locale . DS . $this->viewPath;
    }
}

Però questo snippet su CakePHP 2.x non funziona. Viene presentato un errore: “Use of undefined constant VIEWS“. La costante VIEWS quindi non esiste.

Nel sito http://www.grafikart.fr/forum/topic/4080 viene consigliato quindi di usare questo codice:

$locale = Configure::read('Config.language');
if ($locale && file_exists(APP.'VIEW'.DS.$locale.DS.$this->viewPath))
{
    // e.g. use /app/View/fre/Pages/tos.ctp instead of /app/View/Pages/tos.ctp
    $this->viewPath = $locale . DS . $this->viewPath;
}

Così funziona. Ma la struttura di CakePHP è differente da quella suggerita nel codice, infatti non esiste la directory VIEW (maiuscola), ma è così:

app
    View
        Pages
        ModelName
        ...

Quindi ho migliorato lo snippet in modo da avere una struttura del genere:

/app/View/Pages/en-us/home.ctp al posto di /app/View/Pages/home.ctp

il codice è il seguente:

$locale = Configure::read('Config.language');
$newPath = APP.'View'.DS.$this->viewPath.DS.$locale;
if ($locale && file_exists($newPath))
{
    $this->viewPath = $this->viewPath.DS.$locale;
}

Spero di aver fatto cosa gradita a tutti :)

Buon lavoro!