I cannot get a description on the controller.
Old version without using Nest:
New version on Nest:
Related
I am using Visual Studio 2019 with the latest release of the Core framework. I am creating a new Core MVC app against the Core Framework version 3.1. I have a controller and an action method. I want to create a new view. I am 'Empty' Razor View scaffolded item option. However, I get an error message as follows:
Files and Folders Cannot be
Empty Strings
System reserved names, including 'CON, 'AUX', 'PRN', 'COM1', or 'LPT2'
contain only '.'
have any of the following characters / ? : & \ | # %
The error occurs when selecting the option to add the view and before I ever get the dialogue box asking for the view's name.
Any ideas why I am getting this message?
I had the same problem. After some investigation I realized that my project folder path had a '#' in it (option 4 in the list of errors above). I created the project with a new folder path (e.g. in the c:/somepath/repos folder), which solved the error.
I'am new to grails, I wanted to make use of Dynamic Controller Plugin (http://grails.org/plugin/dynamic-controller) in my project.
I am using grails version 3.2.11
I've added the dependency as directed on the page. It downloads the dependency in the form of zip, I can see it in External libraries. But when I am trying to import two classes (as directed on http://burtbeckwith.com/blog/?p=1041 Linking to existing Controller Actions
approach)
import com.burtbeckwith.grails.plugins.dynamiccontroller.ControllerClosureSource
import com.burtbeckwith.grails.plugins.dynamiccontroller.DynamicControllerManager
it gives " unable to resolve class" error. Please suggest what am I doing wrong here. Thanks!
You're trying to install a Grails 2 plugin in a Grails 3+ app, but that's not possible since they're not compatible. Grails 2 plugins must be upgraded and reworked to be used in Grails 3, and there's no plan to do so for this plugin.
I would say take a look at the URL Mappings & Embedded variables in the grails documentation.
https://docs.grails.org/3.2.11/guide/single.html#embeddedVariables
For example:
static mappings = {
"/blog/$topic"(controller: "blog")
}
which gives you a feeling like you are dynamically declaring actions.
And the topic variable is accessible through GrailsParameterMap params object # controller.
With this you can construct url like:
www.mysite.com/blog/football
www.mysite.com/blog/tvshow
www.mysite.com/blog/etc
Edit: you can also take a look at Dynamic Controller and Action Names [https://docs.grails.org/3.2.11/guide/single.html#_dynamic_controller_and_action_names]
I'm using laravel 5.1 , I'm trying to do a migrate:refresh, I get an error :
Class 'Doctrine\DBAL\Driver\PDOSqlite\Driver' not found in
../vendor/laravel/framework/src/Illuminate/Database/SQLiteConnection.php
[Symfony\Component\Debug\Exception\FatalErrorException] Class
'Doctrine\DBAL\Driver\PDOSqlite\Driver' not found
Doctrine/dbal is already required in my composer.json
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"Doctrine/dbal": "^2.5"
}
So I want to ask what is wrong in my laravel project.
From the official docs:
Before modifying a column, be sure to add the doctrine/dbal dependency
to your composer.json file. The Doctrine DBAL library is used to
determine the current state of the column and create the SQL queries
needed to make the specified adjustments to the column:
composer require doctrine/dbal
What worked for me is to delete the database.sqlite file and create an empty one.
I know this is not the best solution, but it fixed the issue in my use case.
Just a heads up, on Laravel 5.4 (paired with doctrine/dbal#^2.5 package), using the Blueprint::dropColumn() method works like a charm on SQLite databases. No Class 'Doctrine\DBAL\Driver\PDOSqlite\Driver' not found errors thrown.
Doctrine/dbal version 3 doesn't have Doctrine\DBAL\Driver\PDOSqlite\Driver class.
Make sure you are using doctrine/dbal version 2.
If you have version 3, you should remove it
composer remove doctrine/dbal
And then to install the version 2
composer require doctrine/dbal:2.13
Visit this link to see all available versions: https://packagist.org/packages/doctrine/dbal
I have an old project (made for iOS4).
I am upgrading it now and try to add a model version to my Core Data model.
When I am trying to add the version from Xcode menu, it simply create a new version of the model and does not create the .modeld package.
I tried to change it manually but it douses many problems and the migration fails.
Why it won't let me create the .modeld file ?
Any idea how can I overcome this problem ?
Here is the image from Xcode navigator -
While it should be -
Thanks a lot
Xcode will always create a .xcdatamodel file for new model
versions. .xcdatamodeld is a file package that groups versions
of the model.
There's a workaround that you can do:
Create a new Data Model (File > New > File... > Core Data > Data Model) and give the model the same name as your current version (e.g. jerusalemBiblicalZoo).
Reveal the created jerusalemBiblicalZoo.xcdatamodeld on Finder
Right click on the file and select Show Package Contents so you will see a .xcdatamodel file there.
Override it with your old .xcdatamodel file. Then you will have the new data model structure using your old single model version.
if you want to create new version for coreData, don't recreate xcdatamodel.Click jerusalemBiblicalZoo.xcdatamodel and go to Editor->Add Model Version select base model and go on.
I try to make the parent page showing part in all child page but I cannot be I try to using this code but its not working only for the start page\
#{ Html.DroppableZone(Content.Traverse.StartPage, "Recursive-Right").Render(); }
im using N2CMS dinamico edition
Recursive zones are now supported in Dinamico as of v2.5.1. Try upgrading and see if that fixes your issue.
Install-Package N2CMS.Dinamico
or get the latest bits here: https://github.com/n2cms/n2cms/releases